On 7/1/05, Brett Sanger <suppressed> wrote:
> On Fri, Jul 01, 2005 at 05:10:32PM +0900, David Emery wrote:
> > I'm curious as to how many CAP users, like me, already have their own
> > homegrown Generator-like thangs. (A show of virtual hands, perhaps)
>
> Not me. I agressively subclass, so there's not much to create. My
> module just has my specific run modes, my instance script has any
> particular configuration variables.
I think the usefulness of this would come in setting up a nice
directory structure that includes directories for libraries,
templates, test scripts, and possibly even static html content like
images/css/js. Secondly there is the usefulness of creating stub
files for the instance script, or an apache config file for mod_perl
usage, and stub files for tests. Then you could have a template file
that is used to generate a stub for your project Base class, and other
classes, that automatically inherit from your personal system wide
Base class.
I think there is a lot that can be done automatically. It may only
save 20 or 30 minutes at the start of a project, but I think more
importantly, it provides consistency between project layouts, and
possibly ease of distribution.
A lot of this stuff is done for you in Catalyst and some of the other
frameworks, and I think we could learn a lot from how they do things
(with an eye towards customizing the generation process to your
personal liking).
Cheers,
Cees
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.