News for hackers. Stuff that matters.
Re:Github Ruby Styleguide by graywh on Wednesday December 12, 2012 @12:16PM (#4911229)
That's a good example

  shirt.blue? and return bar
would be equivalent to

  return bar if shirt.blue?
You can do the same with or and unless.
Re:Github Ruby Styleguide by philwelch on Wednesday December 12, 2012 @01:32PM (#4911683)
I find the postfix if and unless far more readable than the Perlish and and or operators. The "or die" construction for asserts is really amusing though.