MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w49i01/ihatethispassiveagressivebehaviourruby/p75zze1/?context=3
r/ProgrammerHumor • u/Embarrassed_Death69 • 23h ago
276 comments sorted by
View all comments
0
But wtf is a "truthy" value? It doesn't make any sense nor mathematically nor programmatically
2 u/deceze 22h ago Any value that causes an if statement to run its associated block, instead of going to else/doing nothing. 2 u/Nimeroni 22h ago His argument is that you should make your if statement explicit. 1 u/deceze 22h ago Ah, my bad. if (thing is truthy) { print('Yeah, much better'); }
2
Any value that causes an if statement to run its associated block, instead of going to else/doing nothing.
if
else
2 u/Nimeroni 22h ago His argument is that you should make your if statement explicit. 1 u/deceze 22h ago Ah, my bad. if (thing is truthy) { print('Yeah, much better'); }
His argument is that you should make your if statement explicit.
1 u/deceze 22h ago Ah, my bad. if (thing is truthy) { print('Yeah, much better'); }
1
Ah, my bad.
if (thing is truthy) { print('Yeah, much better'); }
0
u/Key_Conversation5277 22h ago
But wtf is a "truthy" value? It doesn't make any sense nor mathematically nor programmatically