[Catalyst] Model Instances vs. Model Classes - Round 2

Benjamin Hitz hitz at stanford.edu
Thu May 19 23:06:58 GMT 2011


> 
> Maybe I should craft up some sample code of the three patterns identified:
> 
> 1) Catalyst Models Classes: that completely instantiate per request.
> 2) Catalyst Model Instances: with wrapper methods
> 3) Catalyst Model Instances: with wrapper attributes

Would like to see that.  Some of us don't follow all this abstract computer science jargon that well.

Also - can you comment on the following:

WARNING WARNING WARNING 

Using this module is somewhat of a hack. Changing the state of your objects on every request is a pretty braindead way of doing OO. If you want your application to be brain-live, then you should use Catalyst::Component::InstancePerContext.

(appears in POD for Catalyst::Component::ACCEPT_CONTEXT - which I was reviewing because of your email... apparently I must have read this once and told my self "Never do this")


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






More information about the Catalyst mailing list