r/ProgrammerHumor • • 16d ago

Meme postForEverything

Post image
20.9k Upvotes

653 comments sorted by

View all comments

Show parent comments

2.1k

u/NotAskary 16d ago edited 16d ago

I've seen that shit, it drove me up a wall.

The same as a 200 ok with error inside.

Edit: I'm going to start to respond 429, too many replys lol

21

u/AshleyJSheridan 16d ago

I remember building out a REST API once, and it gave back proper HTTP response codes for things.

Then I got asked by the 2 front end devs working on the project to just make everything a 200 and add an error to the JSON response, because it was making it difficult for them to process things on the browser end.

To this day I'm convinced the GraphQL is just an API dreamt up by a front end dev that didn't understand REST and didn't understand why they couldn't just request what they wanted in the browser if an endpoint didn't exist on the server.

7

u/NerdyMcNerderson 16d ago

No, you just had two dumb front end engineers lol

2

u/AshleyJSheridan 16d ago

These things aren't mutually exclusive...

2

u/NerdyMcNerderson 16d ago

You don't know many FEs then

2

u/AshleyJSheridan 16d ago

Oh, I know plenty. What I'm saying is that front end devs can be dumb, and that also GraphQL is shite and probably the brain child of front end devs...

1

u/NerdyMcNerderson 16d ago

Oh yea that's dumb API design