From: Andy Elvey Date: 2009-02-19T15:21:00+09:00 Subject: Re: Newbie - several array questions Rick Denatale wrote: > On Wed, Feb 18, 2009 at 12:10 PM, Choi, Junegunn wrote: > >> 10% in my naive experiment - is irrelevant in this case. I agree that >> we should be aware of the performance issues even when we're dealing >> with a high-level language such as ruby, but your bold statement makes >> me feel that you're trying to 'defend' your own code against the >> others in some kind of a code contest. >> > > I think that the statement that "inject() is always the inefficient > solution possible", even if it were true, which I'm not at all sure it is, isn't particularly good advice. > > One of my buddy Kent Beck's more well known memes is "Make it run. Make > it > right, Make it fast." [1]. Although the roots of this advice can be > traced > back to Butler Lampson [2]. This advice is something that anyone who > wants > to be a software craftsman needs to take to heart. ( snip ) Great! Oh, and please forgive me for snipping a few lines here, Rick - I got an automated message telling me to reduce the number of quoted lines. Thanks Rick, and a very big **thank you** to everyone else who has replied here! It's great to be part of such an active, friendly and generous community! Bye for now - :-) - latte -- Posted via http://www.ruby-forum.com/.