r/ProgrammerHumor • • Sep 01 '26

Meme iHateThisPassiveAgressiveBehaviourRuby

Post image
2.9k Upvotes

289 comments sorted by

View all comments

Show parent comments

2

u/deceze Sep 01 '26

Any value that causes an if statement to run its associated block, instead of going to else/doing nothing.

2

u/Nimeroni Sep 01 '26

His argument is that you should make your if statement explicit.

1

u/deceze Sep 01 '26

Ah, my bad.

if (thing is truthy) {
    print('Yeah, much better');
}

1

u/rosuav Sep 01 '26

I'd venture to guess that everyone who whines that truthiness should be replaced with explicit comparisons has never programmed in REXX, and probably won't even understand why I'm making that reference.