From: Leslie Viljoen Date: 2006-05-03T04:28:34+09:00 Subject: Re: Sharp knives and glue ------=_Part_44013_32564420.1146598105908 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 5/2/06, Daniel Harple wrote: > > On May 2, 2006, at 5:33 PM, Leslie Viljoen wrote: > > > My Rails project worked perfectly until I uploaded it to Textdrive > > and since Glue had been installed, the basic environment had been > > altered. By chance, Glue had defined a class with the same name as > > one of my Models and somehow it overrode my class when the project > > ran. They removed Glue when I asked and everything worked again, > > but it took me two days to find the problem. > > I wonder why Rails doesn't put your app in it's own top-level module > (MyApp::Page, etc.) -- it is bad design not to. > > Glue can only alter your environment if you require it. I still don't understand how it happened. AFAIR it was my model object, which Rails generates using the database, so perhaps it was a one-time side-effec= t caused by Rails magic and I should not complain about it. I would have done more investigations but they removed Glue and everything worked so I released the code and the client was happy. Oh, I see there's plenty of complaining about Glue here: http://comments.gmane.org/gmane.comp.lang.ruby.general/110876 so let's not whip that dead horse any more. For all I know it's been fixed for years. Anyway, the real issue for me is that I'd like to say to my friend "hey, al= l this dynamic stuff doesn't make team programming harder" - but I've never done it so I can't say it. ------=_Part_44013_32564420.1146598105908--