this post was submitted on 21 Mar 2025
681 points (99.4% liked)

Programmer Humor

22245 readers
688 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
 

Original post: hachyderm.io (Mastodon)

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 15 points 2 weeks ago (1 children)

And you all complained when in C we used 1 and 0...

[–] [email protected] 7 points 2 weeks ago (1 children)
[–] [email protected] 4 points 2 weeks ago (1 children)

Akcshually we use 0 and "not equal 0", since "not 0" would be 0xFF..FF, and (at least gcc) gives back a 1 for a true expression. No idea about the spec, probably undefined...

[–] [email protected] 2 points 2 weeks ago

Damn you for correcting me correctly! :D