From: Robert Dober Date: 2009-02-18T20:58:25+09:00 Subject: Re: What are your favorite Ruby features? On Wed, Feb 18, 2009 at 2:38 AM, David A. Black wrote: > Of course there are language features that one might want to use more > because they solve particular problems, or do things better than other > ways, but those may or may not be the ones I would put on an informal > list of my favorite bits of Ruby. Understood David I did not want to say what I think about lambdas because I was really interested in what people might think of it. But nothing happened :(. Well that's life. At least I can speak freely now and sorry for having been cryptic but it was intentional, although not productive. I believe that Ruby would highly benefit of using *all* of its behavior implementing features. Assumption: "Lambdas are often the better way to implement behavior instead of using a class right away." Problem is that I am so conditioned to using classes that I *never* think of it. I once looked at some of the easier Ruby Quizzes and I estimated that more than 50% could have been written with lambdas and without classes resulting in "simpler" code... But it remains to be seen what the exact advantage of that approach would be. In order to be able to do that one would need more code examples, right? And in order to have more code examples one would need some folks to adapt that approach... ( me first LOL) Am I talking too much? Well at least it should be clear now what I wanted to say. And of course I accept all opinions that this exercise might be futile, which indeed it might be of course. Thanx for listening. Robert > > > David > > -- > David A. Black / Ruby Power and Light, LLC > Ruby/Rails consulting & training: http://www.rubypal.com > Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2) > > Ruby Training Atlanta! April 1-3, http://www.entp.com/training/atlanta09 > > -- There are some people who begin the Zoo at the beginning, called WAYIN, and walk as quickly as they can past every cage until they get to the one called WAYOUT, but the nicest people go straight to the animal they love the most, and stay there. ~ A.A. Milne (from Winnie-the-Pooh)