[LRUG] To debug the impossible bug

Simon Coffey simon at tribesports.com
Wed Aug 3 04:37:18 PDT 2011


On 3 August 2011 12:26, Matthew Rudy Jacobs <matthewrudyjacobs at gmail.com> wrote:
> Yeah,
> you're right Simon.
> Apologies for taking us on a tangent.
> But over the past 5 years I have NEVER seen this use of a case statement.
> :s

Heh, I make no claims for the beauty or otherwise of this code. It's a
style we use quite a lot, though, primarily in Rails helpers where
conditional logic has a habit of proliferating. I just find it clearer
than a long string of if/elsifs.

Thanks anyway, and no worries. Now. Instance variable corruption... :-)

Cheers,
Simon



More information about the Chat mailing list