[cgiapp] packages autouse?

Porta julian.porta at gmail.com
Fri Jun 12 07:49:37 EDT 2009


I saw it, but unless I use the superloader, it still need to define the
names of the modules I want to use.And, regarding the superloader, I'm lazy
enough to want to use all the packages within a given folder, but not just
every possible module in the world...
Still, a good suggestion.

On Fri, Jun 12, 2009 at 1:38 AM, Cees Hek <ceeshek at gmail.com> wrote:

> Are you perhaps looking for Class::Autouse?  Not something I would use
> myself, but it may help you be more lazy in your programming...
>
> Cheers,
>
> Cees
>
> On Fri, Jun 12, 2009 at 2:11 AM, Porta <julian.porta at gmail.com> 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.
> >
> > Assuming you're working with a persistent instance (means no need to do a
> > cold start of your app on each request, so no problem to load all your
> app
> > packages in memory) why not have *something* to manage the "use" of all
> the
> > involved packages and reduce the repeated code on each package start.
> >
> > Thoughts?
> >
> > #####  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/                 ##
> > ##                                                            ##
> > ################################################################
> >
> >
>
> #####  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