shared

How to use Ruby’s English and/or operators without going nuts

A murb'ed feed, posted more than 5 years ago filed in ruby, programming, user & Machine.

Apparently I wasn’t programming ruby the right way. I actually enjoyed the and and or statements, even in if-statements, and preferr them over the more classical programming constructs of && and ||… but this article explains the ‘right’ way:

But on the other hand, hey, both works, do what you like. Ruby is a friend, not a compiler.

Go to the original link.