[Catalyst] Shoot out -- Catalyst / RoR / Other MVC apps --
Peter Karman
peter at peknet.com
Wed May 9 16:23:14 GMT 2007
Dave Rolsky scribbled on 5/9/07 10:02 AM:
[snip]
> That's the subclassing piece. The delegation is that rather than
> implement the functionality of breadcrumbs in the response object, the
> breadcrumbs accessor simply returns a VegGuide::Breadcrumbs object.
>
ah. that makes sense. Now I have a name for something I already do. :)
> On a side note, Catalyst plugins as a rule seem to jam _way_ too many
> methods into the things they extend (the session plugin is truly
> egregious). Some day I'd like to write a version of the session plugin
> that adds one method to the core Catalyst object, session(), and all the
> rest of the methods would be available via the object returned from
> session().
>
Yes, the Catalyst::Plugin::Cache system could work much the same way. There seem
to be a lot of syntatically sweet methods in some plugins that just wrap around
the core method.
--
Peter Karman . http://peknet.com/ . peter at peknet.com
More information about the Catalyst
mailing list