[cgiapp] Class::MOP? Really?

Ben Hitz hitz at genome.stanford.edu
Sat Oct 20 11:55:20 EDT 2007


I am not a fan of inside-out objects in perl, because I have much old  
code which uses old-style hash objects.
It's confusing to have two types (although technically usable).


We have been converting our hand-rolled Database API to DBIx::Class,  
which uses Class::Accessor (actually an extension written for DBIC)  
called Class:Accessor::Grouped and Class:C3 to dispatch.

What do people think of this one?

Ben

--
Ben Hitz
Senior Scientific Programmer ** Saccharomyces Genome Database ** GO  
Consortium
Stanford University ** hitz at genome.stanford.edu



On Oct 19, 2007, at 6:27 PM, Ron Savage wrote:

> Michael Peters wrote:
>
> Hi Michael
>
>>> This isn't a "hey, Class::MOP is the new hotness!" change, is it?
>> I think this was a "hey, Class::MOP is really cool. I bet it would  
>> make CGI::App
>> much simpler...oh wait. Look how slow everything got!". And now we  
>> also have
>> "Look how big everything got!".
>
> So, pretty please, can we have a guarantee from the 'developer in  
> quesiton' that Class::MOP will not be used?
>
> I've just finished reading Perl Best Practices by Damian Conway,  
> and compiled a list of 14 class-helper type modules on CPAN (yes,  
> I'm sure there are more), since I (too) have been wondering how my  
> future work would develop.
>
> I realize there is no one perfect answer to this question, and  
> Damian's module Class::Std has a long bug list on RT.
>
> Nevertheless, my vote would be either for Object::InsideOut or  
> Class::Std, but only if it was necessary to use such a system in  
> the first place. And is it necessary? This is the question. My  
> feeling is: No, not for CGI::App.
>
> If you were to start another project, let's call it CGI::Framework,  
> then sure, investigate such things, but I can't see how CGI::App  
> needs any of this class/meta-class overhead.
> -- 
> Ron Savage
> ron at savage.net.au
> http://savage.net.au/index.html
>
> #####  CGI::Application community mailing list  ################
> ##                                                            ##
> ##  To unsubscribe, or change your message delivery options,  ##
> ##  visit:  http://lists.openlib.org/mailman/listinfo/cgiapp    ##
> ##                                                            ##
> ##  Web archive:   http://lists.openlib.org/pipermail/cgiapp/   ##
> ##  Wiki:          http://cgiapp.erlbaum.net/                 ##
> ##                                                            ##
> ################################################################




More information about the cgiapp mailing list