On Fri, Jun 23, 2006 at 04:21:41PM +1000, Mark Sargent wrote: > Matt, do you agree with the authors comments regarding the usage of > brackets in chapter 1 (11 0f 85)? I am now wondering if I should start > getting into that habit? Cheers.
Absolutely. Ruby's ability to drop parentheses when they're not needed can, at times, be quite useful in reducing clutter in your code. However, you need to know (and remember!) the rules about when you can and can't drop the parentheses, otherwise you will get yourself in a whole world of trouble. When you're learning the language, you should definitely follow good coding practices like consistent indenting and parenthefication religiously. When you know the rules well, only then can you make good decisions about when to break them. - Matt _______________________________________________ coders mailing list coders@slug.org.au http://lists.slug.org.au/listinfo/coders