r/ProgrammerHumor 23h ago

Meme iHateThisPassiveAgressiveBehaviourRuby

Post image
2.6k Upvotes

276 comments sorted by

View all comments

0

u/Key_Conversation5277 22h ago

But wtf is a "truthy" value? It doesn't make any sense nor mathematically nor programmatically

2

u/ReefNixon 22h ago

What do you mean it doesn't make any sense programmatically? All 'truthy' means is that it evaluates as true in a conditional, truthy (and falsey) values are completely normal concepts in high level programming.

1

u/Key_Conversation5277 22h ago

if(42) -> true

What fucking sense does this make? A number is a number, not something to be coerced to a boolean. Thankfully Java doesn't have this nonsense

1

u/Unlikely-Bed-1133 22h ago

Implicit casting is a thing that makes sense both programmatically and mathematically. You just prefer strongly typed languages.