this post was submitted on 06 Mar 2025
120 points (94.1% liked)

Programming

18652 readers
103 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

I can’t believe nobody has done this list yet. I mean, there is one about names, one about time and many others on other topics, but not one about languages yet (except one honorable mention that comes close). So, here’s my attempt to list all the misconceptions and prejudices I’ve come across in the course of my long and illustrious career in software localisation and language technology. Enjoy – and send me your own ones!

you are viewing a single comment's thread
view the rest of the comments
[–] crestwave 12 points 3 days ago (2 children)

As far as C goes, 1 is true and 0 is false.

In terms of POSIX exit codes, 0 is success and 1 is error.

[–] [email protected] 5 points 3 days ago

I think more specifically for C, 0 is false and anything nonzero is true. Idk about NaN/inf.

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

True is anything other than zero in C.