this post was submitted on 31 Mar 2025
23 points (96.0% liked)
Programmer Humor
22219 readers
1620 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
And then there are things like strcmp() that uses 0 as true. At least it is for a good reason, but still confusing.
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.