this post was submitted on 10 Feb 2026
567 points (96.6% liked)

Programmer Humor

30796 readers
717 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

Soy 0 got truthmogged by chad 1 😎

you are viewing a single comment's thread
view the rest of the comments
[–] jaybone@lemmy.zip 23 points 1 month ago (1 children)

And it’s an error code from a library call, because false means the call succeeded.

[–] _cnt0@sh.itjust.works 9 points 1 month ago (1 children)

This is the way. Exceptions are overrated.

[–] Scrath@lemmy.dbzer0.com 1 points 2 weeks ago

I used to use enums for my return codes.

Then I got pissed I had to add my enum definition to every project I worked on.

I now return integers based on errno