[cgiapp] packages autouse?
Rhesa Rozendaal
perl at rhesa.com
Thu Jun 11 13:33:13 EDT 2009
Porta wrote:
> Hey, folks.
> Question:
> I was wondering if anyone else (than me) thinks is annoying to declare the
> "use" of all the required models (objects? packages?) you're using in your
> CA app?More, when working with CAD, on each controller you need to repeat
> use MyApp::Foo; use MyApp::Bar; etc.
I think that's a feature, not a bug. It depends on the size of your code base,
but I generally like to see what a class imports or inherits, so I don't have
to chase up the inheritance hierarchy to find out what's defined where.
See also Ovid's posts on this topic, e.g.
* http://use.perl.org/~Ovid/journal/39039
* http://use.perl.org/~Ovid/journal/38862
rhesa
More information about the cgiapp
mailing list