From: Robert Dober Date: 2007-07-12T17:31:19+09:00 Subject: Re: Beautiful Code : Pity he didn't ask here... On 7/12/07, Jeremy Hinegardner wrote: > On Thu, Jul 12, 2007 at 11:38:00AM +0900, ara.t.howard wrote: > > > > On Jul 11, 2007, at 7:30 PM, Tom Copeland wrote: > > > > >Ah, cool, OK, thanks for the heads up! > > > > > > yeah! i'm always on the lookout for code that runs slow but reads > > great - just my style ;-) > > I predict the following code will appear in a codeforpeople example > soon. > > some_ara.map(&:fortytwo) Got you finally!!!, It as all your fault, 42 (or :fourtytwo ) is a mystery constant. That has to change ANSWER_TO_THE_QUESTION_ABOUT_THE_MEANING_OF_LIFE_THE_UNIVERSE_AND_EVERYTHING = 42 It might be a good idea to include the ISBN of the "Hitchhikers Guide through the Galaxy" into the constant too. Robert -- I always knew that one day Smalltalk would replace Java. I just didn't know it would be called Ruby -- Kent Beck