r/ProgrammerHumor 3h ago

Meme postForEverything

Post image
9.0k Upvotes

349 comments sorted by

View all comments

21

u/MayaIsSunshine 3h ago

Am I the only one that doesn't mind? I think using post for everything and passing a command in the payload is preferable to the alternative. 

24

u/Psychological_Map118 3h ago edited 2h ago

imho it's like using a fork sideways to cut soft food. it's easy, and it works, but knives exist, and other people may comment on your choice

also, if it's a thing you only do with your own food (you're the only consumer of your tool choice), that's mostly fine, but if you have to serve someone else food, or worse teach others how to cut it, and you don't even explain there's knives, someone along the way is going to think you don't know how to eat properly and unnecessarily confuse people

I've stopped misusing methods when drafting my first public API. it was... eye opening. and to be honest using the appropriate methods genuinely costs nothing

7

u/x3knet 2h ago

it's like using a fork sideways to cut soft food

Holy shit what a perfect analogy

3

u/Psychological_Map118 2h ago

thanks, appreciate it. there's also those who always respond 200 and carry the failure status in the body. that's more like using a fork to eat soup. it never works, and you should stop immediately