shared

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

Een murb'ed feed, meer 5 jaar geleden geplaatst onder 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.

Lees meer op de oorspronkelijke bron.

Op de hoogte blijven?

Maandelijks maak ik een selectie artikelen en zorg ik voor wat extra context bij de meer technische stukken. Schrijf je hieronder in:

Mailfrequentie = 1x per maand. Je privacy wordt serieus genomen: de mailinglijst bestaat alleen op onze servers.