James Gray
3/15/2007 3:42:00 AM
On Mar 14, 2007, at 10:35 PM, Rob Sanheim wrote:
> On 3/14/07, James Edward Gray II <james@grayproductions.net> wrote:
>> On Mar 14, 2007, at 9:06 PM, Rob Sanheim wrote:
>>
>> > On 3/14/07, Giles Bowkett <gilesb@gmail.com> 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
>
> True - and some of the things ActiveSupport adds are things I wouldn't
> add myself, had I built Rails :). I think most of the extensions make
> sense, given the type of applications Rails are targeting.
Exactly. So you are more in favor of the process than you thought. ;)
James Edward Gray II