From: James Edward Gray II Date: 2007-03-15T11:18:03+09:00 Subject: Re: java guilt On Mar 14, 2007, at 9:06 PM, Rob Sanheim wrote: > On 3/14/07, Giles Bowkett wrote: >> I just solved a problem by adding an instance method to String. >> >> It makes for very elegant code elsewhere within the application. >> >> Yet I can't shake the feeling I've done something dirty. >> >> I think there needs to be a group like "Recovering Java Programmers >> Anonymous" or somehting. > > I worked in Java for 5+ years, and am coming up on my one year > anniversary on working in Ruby professionally. I *still* think adding > methods to core classes should be done very selectively, and only in > cases where that method is truly useful in a wide variety of contexts. ...and... > Note that I"m speaking of a larger Rails project with multiple > distributed developers - if its just you and a small side project then > hack up the core classes all you want. =) There's quite a bit of irony here my friend. Rails ads a good size number of methods to the core Ruby classes. ;) James Edward Gray II