I Hate This Passive Aggressive Behaviour Ruby

I Hate This Passive Aggressive Behaviour Ruby
ruby-memes, javascript-memes, truthy-falsy-memes, type-coercion-memes, programming-languages-memes | ProgrammerHumor.io

Someone finally said it. In Ruby, 0 is truthy because Ruby actually makes sense—only nil and false are falsy. Meanwhile JavaScript over here treating 0, empty strings, NaN, null, undefined, and probably your hopes and dreams as falsy. But sure, Ruby's the weird one for being consistent.

Ruby devs have been dealing with this slander for years while JavaScript casually allows [] == ![] to evaluate to true. The audacity.

More Like This