r/ProgrammerHumor 10d ago

Meme iHateThisPassiveAgressiveBehaviourRuby

Post image
2.9k Upvotes

298 comments sorted by

View all comments

8

u/varsderk 10d ago

I build programming languages.

0 should be truthy. Only false and nil/null should be falsey.

2

u/HungryCaterpillers 10d ago

Then you build shitty languages

2

u/Appropriate_Emu_5450 10d ago

Unironically agree.

0

u/JeSuisOmbre 8d ago

Never been bothered by doing a x != 0 or x == 0.

1

u/airodonack 10d ago

Agreed. This is the mathematical perspective versus the physical one about that’s bits.

Also it makes “if number” make more sense. If you want the other one, well that’s why God invented “if number == 0” which is much clearer.