r/ProgrammerHumor 17h ago

Meme iHateThisPassiveAgressiveBehaviourRuby

Post image
2.4k Upvotes

264 comments sorted by

View all comments

Show parent comments

2

u/deceze 17h ago

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

2

u/Nimeroni 17h ago

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

1

u/deceze 17h ago

Ah, my bad.

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

1

u/rosuav 15h ago

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.