develooper Front page | perl.module-authors | Postings from November 2003

Re: Author's namespace

Thread Previous | Thread Next
Eric Wilhelm
November 14, 2003 12:19
Re: Author's namespace
Message ID:
> The following was supposedly scribed by
> Mark Stosberg
> on Friday 14 November 2003 02:02 pm:

>Still that leaves the issue of naming it. It's still best described as
>"a module for building CGI applications Mark's way".  I could give it
>some generic name like "CGI::Application::TurboCharge", but that seems
>to be of limited usefulness.

If your way isn't the best way, there must be something wrong with it or your 

Maybe you should name it according to how you would describe your style, so 
that others with a similar style could find it more easily.  
CGI::Application::Terse ?

As I said before, if it is mostly about wrapping a few functions into one and 
choosing some reasonable defaults with some options for over-riding these, 
I'd really like to see it be able to source a file out of the user's home 
directory (or a machine-wide /etc/ file) that would over-ride these defaults 
at compile time.

I really don't think that it is appropriate for a distributed module to 
require something out of an Authors:: tree.  If the helper functions are not 
something that others would want to use, it seems that this would make it 
more difficult to contribute to or subclass your "front-end" module.

Isn't it possible to distribute it under the "front-end" module?  For example, 
I'm currently working on CAD::Drawing, which will require 
CAD::Drawing::Manipulate, CAD::Drawing::Defined, and CAD::Drawing::IO to name 
a few.  Everything below CAD::Drawing is rather helpless without it and it is 
helpless without them, so I had planned to pack them all into a 
CAD-Drawing-0.01.tar.gz and upload that (with the exception of the various 
CAD::Drawing::IO::backend modules to be installed as options.)

If this setup is possible, then maybe your helper functions should be in 
CGI::YourModule::helpers and packed-up with it for distribution at least 
until they can find a home of their own.  If you are duplicating the helpers 
multiple times (in each distributed module under totally separate namespaces) 
to do this, just note that in the sparse documentation and plan to do better 


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About