in reply to CPAN: install programs and namespaces
Most of my question boils down to: where's the dividing line between a module that should be distributed via CPAN and an application (as an extreme: Slash) that's best distributed alone?
Personally I sit on the put-it-on-CPAN side of this particular fence. I don't think it's bad that we're seeing more application oriented code on CPAN now.
Brian Ingerson uploaded his CGI::Kwiki to CPAN. The package installs 'kwiki-install' into /usr/bin; it's a program that creates scripts and resources for a wiki in the current directory. I've not seen another CPAN module that does this, but neither have I installed a large number of modules. It's a nice way to solve the problem, and one I'd like to emulate if it doesn't ruffle any feathers, CPAN-wise.
Bryar (and possibly others) use similar systems - it seems a reasonable approach to me.
I've also used Module::Build to add extensions to make configuration-specific installations. So you would do things like:
./Build myappinstall /in/this/directory
It might be worth investigating as an alternative.
I could call the program "legLess's Uber Task Master" and upload it to CPAN as 'LUTM' in the root namespace but I'd be driving by, and ignoring, many warning signs (though again, Kwiki is soon to do the same thing).
Descriptive names that reflect what the system actually does are infinitely preferable in my opinion. Kwiki does at least have "wiki" as a substring!
I know that good answers may be found on the CPAN modulelist mailing list, but from what I've seen of it an interesting discussion is more likely to happen here..
You'll also get good feedback on module-authors.
My plan for install step two is to have a README with instructions for creating the data store (a MySQL database for now), then an install program/script that creates the resources in the web server directory. This seems to be a pretty standard way of doing it; does anyone have thoughts?
Sounds sensible. You might want to look at CGI::Wiki which has a similar strategy.
However, I'd recommend sticking the installation documentation in the POD of your root module for those who do not have the distribution README to hand.
On a completely separate note I personally think that the whole application is overkill for an XPish environment :-)
With a co-located team an information radiator in the corner of the room is what you need. If you don't have everybody in the same place then I've found a good old fashioned wiki is all that is necessary. Needing this much infrastructure to support an XP project would, to me, be a sign of some serious communication problems within the development team.
Don't let me stop you though - whatever works :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: CPAN: install programs and namespaces
by legLess (Hermit) on Jan 03, 2004 at 21:42 UTC | |
by adrianh (Chancellor) on Jan 17, 2004 at 00:35 UTC | |
by legLess (Hermit) on Feb 06, 2004 at 16:40 UTC |