this post was submitted on 31 Mar 2025
340 points (97.5% liked)

Programmer Humor

22222 readers
926 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 55 points 4 days ago* (last edited 4 days ago) (3 children)

That's not the truth. It's one of infinitely many truths. They hated him because Jesus didn't understand how implicit type casting between int and bool worked.

[–] [email protected] 13 points 4 days ago* (last edited 4 days ago) (1 children)

Lambda calculus gang has entered the chat with λx.λy.x as The Truth™

[–] [email protected] 4 points 4 days ago* (last edited 4 days ago)

I told them to leave a pamphlet and fuck off, but the pamphlet was a fixed-point combinator that put them back on my porch again.

[–] [email protected] 3 points 4 days ago* (last edited 4 days ago)

if ((1 > 0) == 1)
printf("The OG truth\n");

[–] [email protected] 5 points 4 days ago (1 children)

And then there are things like strcmp() that uses 0 as true. At least it is for a good reason, but still confusing.

[–] [email protected] 7 points 4 days ago

I don't find it confusing at all. The function doesn't test equivalence, and the return value is not meant to be a logical value.