Perhaps people don't have this problem very often, but I once spent three days puzzling over a Rails app that worked fine on my computer, but not at the web host. A library had been installed by the host that created a class that was require'd somewhere down the line. That class had the same name as one of my models, and it totally killed my app. Having a dynamic base environment works fine until there's a clash. As the code base grows, so do the chances of a clash and also the difficulty in finding it. On 6/4/08, David Masover <ninja / slaphack.com> wrote: > On Wednesday 04 June 2008 13:53:26 Leslie Viljoen wrote: >> Holy macaroni, thanks for these replies! >> >> What I am trying to accomplish here is the optional modification of >> core classes. So my CRC lib can handle useful calculations, and >> optionally add convenient methods to String and Fixnum too. > > Probably included, then, rather than extended. > >> That way people can have the convenience if they like, but they must >> explicitly authorise it with String.send(:include ..). It seems like a >> good plan to me, but the lack of a public String.include() method >> makes me think this is a very rare plan. > > Generally, people don't expect to have to do more than a require to have the > library ready to use. So I'd do that yourself, somewhere in the library > file. > > -- [we need your code-fu] : www.zadic.co.za