this post was submitted on 31 Mar 2025
351 points (97.6% liked)

Programmer Humor

30162 readers
907 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
 
all 15 comments
sorted by: hot top controversial new old
[–] rtxn@lemmy.world 60 points 11 months ago* (last edited 11 months 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.

[–] owsei@programming.dev 15 points 11 months ago* (last edited 11 months ago) (1 children)

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

[–] CanadaPlus@lemmy.sdf.org 4 points 11 months ago* (last edited 11 months 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.

[–] Tanoh@lemmy.world 5 points 11 months 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.

[–] rtxn@lemmy.world 7 points 11 months 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.

[–] Tja@programming.dev 3 points 11 months ago* (last edited 11 months ago)

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

[–] DrDeadCrash@programming.dev 19 points 11 months ago

That's 'truthy'

[–] AnotherPenguin@programming.dev 14 points 11 months ago

Does JeSus use javascript?

[–] db2@lemmy.world 12 points 11 months ago (3 children)
[–] Aurenkin@sh.itjust.works 6 points 11 months ago

No no..... negative three

[–] hakunawazo@lemmy.world 3 points 11 months ago* (last edited 11 months ago)

His index started like -6 or -4 (assuming he even existed).

[–] lefixxx@lemmy.world 2 points 11 months ago

I'll take it over 0, because it will force people to think with what arrays are populated. And if 1 index or 0index is appropriate instead of defaulting all arrays and loops at 0.