[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] C::A::Generator (was BOF Minutes)



Cees Hek wrote:

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).

I know I mentioned this to a few people at YAPC, but there currently exists a Perl project on sourceforge named Matchstick (to start your LAMP :). It's based on the krang build/distribute/upgrade framework, or at least it will be if it ever gets enough support.

It's really a neat idea to have all of your CPAN dependencies and apache/mod_perl (including apache/mod_perl is going a step beyond something like PAR) all packaged up together with a nice easy build framework to make it all work (if you want to build from source) or an evern easier to use package for your platform.

We have reimplemented the krang build system at least 3 times now ourselves and we're kinda tired of doing that :) It's just that everytime a new project starts we think it'll be easier to just copy-paste/fiddle than to actually abstract it out. But we're kinda stupid in this regard. Please join up on the matchstick mailing list and express your interest. We just need a good kickstart (well, ok, some time wouldn't hurt either).

--
Michael Peters
Developer
Plus Three, LP


---------------------------------------------------------------------
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.