On Thu, 18 Jan 2007 14:26:15 -0800 Eric Wilhelm <[EMAIL PROTECTED]> wrote:
> Hmm, is it a factory that returns factories or just one that returns > classes? > > Class::FactoryFactory ? > > Class::ClassFactory ? See... I had a long chat on IRC about this. My upshot was that, an object in this class, is a factory. Consider e.g. GTK::Window. We don't call that class, a factory. $window = GTK::Window->new(...); Ergo, if we add one more level of indirection, we should add one more "Factory" name: $factory = Class::SomethingFactory->new(...); $instance = $factory->new_instance(...); > > it doesn't really convey the generic "magic"ness of the > > code. > > Class::MagicFactory ? > > Class::ChocolateFactory ? :-D No, see, then I'd have a dependency on Class::Charlie, Class::Willy::Wonka, and Class::Elevator::Glass::Great. > BTW, before this goes on CPAN, I would like to cast my vote against the > dromedaryCased methodNames. Please, use lowercase_with_underscores. Sorry; been arguing with too many Java programmers today. underscore is probably what I'll do with it. -- Paul "LeoNerd" Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/