this post was submitted on 02 Sep 2024
221 points (98.3% liked)

Programming

17364 readers
154 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

There are a couple I have in mind. Like many techies, I am a huge fan of RSS for content distribution and XMPP for federated communication.

The really niche one I like is S-expressions as a data format and configuration in place of json, yaml, toml, etc.

I am a big fan of Plaintext formats, although I wish markdown had a few more features like tables.

you are viewing a single comment's thread
view the rest of the comments
[–] RonSijm@programming.dev 14 points 2 months ago (4 children)

Problem Details for HTTP APIs - I have to work and integrate with a lot of different APIs and different kinda implementations of error handling. Everyone seems to be inventing their own flavor of returning errors.

My life would be so much easier if everyone just used some 'global unified' way to returning errors, all in the same way

[–] MonkderVierte@lemmy.ml 9 points 2 months ago (1 children)

Please guys, stop using line-breaks mid-sentence. It's not the 90's anymore, viewers generally can wrap.

[–] tyler@programming.dev 1 points 2 months ago (1 children)
[–] MonkderVierte@lemmy.ml 1 points 2 months ago* (last edited 2 months ago) (1 children)
[–] tyler@programming.dev 4 points 2 months ago (1 children)

No, in general the markdown format suggests using line breaks in the middle of paragraphs to make the code just as readable as the output. That’s why two line breaks is what creates a new paragraph. So it’s the viewer showing it incorrectly here.

[–] ulterno@lemmy.kde.social 0 points 2 months ago

The screenshot is of the website ietf.org , which doesn't seem to be markdown.

That would be nice. I have implemented this in the past but never once encountered an API that used it.

[–] olafurp@lemmy.world 2 points 2 months ago

Best is when the API doesn't match a PDF and says "500: Internal Error"

[–] ulterno@lemmy.kde.social 2 points 2 months ago* (last edited 2 months ago)

Saving...

I made my first API at work last year (still making) and always saw myself looking for input on making a consistent way to return errors, with no useful input from the senior programmers or the API users. This is my second biggest problem, the first being variable and function names of course.

If I were to do anything related to HTTP, I now have something to look at.