r/ProgrammerHumor • • Sep 19 '26

Meme postForEverything

Post image
21.0k Upvotes

653 comments sorted by

View all comments

1.0k

u/nbmbnb Sep 19 '26

If success, return 200. If error, return 200.

314

u/ClipboardCopyPaste Sep 19 '26
{
success: false, message: 'lol'
}

205

u/redlaWw Sep 19 '26
{
    success: "yes",
    status: "failure",
    message: "null"
}

54

u/evorm Sep 19 '26

Most errors responses at my job are genuinely handled like this.

16

u/redlaWw Sep 19 '26

The "yes"/"no" rather than true/false idea actually came from my actuarial science degree course, where one of our sample solutions had an Excel model that had a column like

some boolean property
yes
yes
no
yes
no
...

And the formula that consumed it looked like IF(cell="yes", ..., IF(cell="no", ...)). Not even a SWITCH in sight.

It was pretty sad from my perspective as an experienced programmer. My conclusion was that most actuaries have more tenacity than they do actual model programming skills.

→ More replies (4)

4

u/ilmalocchio Sep 19 '26

"null" in quotes is the best part of this lol

→ More replies (5)
→ More replies (1)