On Tue, 3 Jul 2007, Mark Torrance wrote: > 1. When I want to have the flexibility to override the component > implementation for a particular cobrand. In our work, we have an > extensive component root for the "base" site, and then have an > additional component root that includes overrides which are "cobrand- > specific" for particular specializations/clients that are customers of > our customer. Components that return values let us make special- case > versions of functions for a particular cobrand, without reinventing the > whole inheritance / overrides thing in our .pm hierarchy too.
For this sort of thing I'd probably just make a small set of classes where there was a default brand, and then individual brands could override the defaults in a subclass. > 2. When I want to be able to work on a function, and get it right, > without restarting the webserver every time. It may be just me, but I > have not been able to get mod_perl to force recompliation of changed .pm > modules reliably, even in our dev environment. That means that when we > change code in modules, we have to restart the webserver, but when we > change code in Mason components we don't. Obviously, this gives a big > incentive to leave code in Mason modules, at least during debugging. I've not had too much trouble with Apache::Reload, _except for_: * source filters - kaboom * Class::DBI - not sure why Catalyst solves this probably very nicely. It's built-in standalone server takes a flag to restart automatically if a module in the tree changes. This is pretty slick, and avoids all the weirdness that Apache::Reload can cause, but it's a bit slower. However, I've found it works really well for dev work. You can still deploy an app under mod_perl or FastCGI with Catalyst, the standalone server is intended primarily for dev work, since it's single process/thread, and all Perl. -dave /*=================================================== VegGuide.Org www.BookIRead.com Your guide to all that's veg. My book blog ===================================================*/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mason-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users

