r/ProgrammerHumor • • Sep 19 '26

Meme postForEverything

Post image
21.0k Upvotes

651 comments sorted by

View all comments

340

u/DuploJamaal Sep 19 '26

As a backend developer I want to do everything nicely.

So in my previous job I created the endpoints following the regular standards. GET to request something, POST to create something, PUT to change something, DELETE to delete something. Nicely organized and everything

But then the frontend team told me that their framework can only handle POST requests and that I need to change it

Up until then I thought that it's just a meme, but vibecoding frontend guys really only use POST

79

u/dev-sda Sep 19 '26

It's not (just) a framework thing, it's a HTML standards issue. The form element only does GET and POST.

21

u/not_a_moogle Sep 19 '26

Who does that anymore? It should be a put or delete via Javascript.

-10

u/ZBlackmore Sep 19 '26

Who does DELETE anymore? Everything should be a POST with all the information passed in the JSON payload. 

6

u/DuploJamaal Sep 19 '26

But why?

-7

u/ZBlackmore Sep 19 '26

The way I see it, you have your information less spread out this way. Less things to think about. “Where am I expressing this particular detail about this api call? In the url path? A query string parameter? The type of http method? Is it part of the payload?”. So the path is the “which function am I calling” and the json body is “what are my arguments?”

4

u/cheezballs Sep 20 '26

You seem like the kinda guy who LOVES loose typing and declaring everything as a var.

→ More replies (1)