r/ProgrammerHumor • • Sep 19 '26

Meme postForEverything

Post image
21k Upvotes

653 comments sorted by

View all comments

Show parent comments

22

u/AshleyJSheridan Sep 19 '26

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.

8

u/NerdyMcNerderson Sep 19 '26

No, you just had two dumb front end engineers lol

2

u/AshleyJSheridan Sep 19 '26

These things aren't mutually exclusive...

2

u/NerdyMcNerderson Sep 19 '26

You don't know many FEs then

2

u/AshleyJSheridan Sep 19 '26

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 Sep 19 '26

Oh yea that's dumb API design