Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Q: What to name a module?

Reply
Thread Tools

Q: What to name a module?

 
 
Robert Rothenberg
Guest
Posts: n/a
 
      07-15-2004


I am working on a module that when given a CPAN distribution, will return
which modules the distribtion requires (by parsing the Makefile.PL using
Module::MakefilePL:arse if the META.yml file is not available).

A companion module will actually try to fetch the distribution information
from CPAN (since it can query a .meta file if it exists before downloading an
entire distribution).

Because it is more closely tied to CPAN and works with distributions rather
than modules, I am thinking of calling it CPAN:istribution:epends.

Comments or suggestions about the namespace would be appreciated.

FYI--I am writing yet another module to do this because existing modules
either do not work on my platform or they require preqrequisite modules to be
installed. Basically they either compile the module or run
Makefile.PL/Build.PL and see what modules are asked for. I'd rather use a
safer (and I think faster) method to partially-parse the Makefile.PL if no
META.yml is available.

Some tests using all the latest distribution on CPAN show that it works for
all but a handful of distributions.

This is actually part of a larger project to show test results (organized by
platform) of module dependencies. If there is a failure in the dependency
tree, authors can check for this.

I've also posted this question on Perl Monks at
<http://perlmonks.org/index.pl?node_id=374747>

 
Reply With Quote
 
 
 
 
Mohammad Mahmoud Khajah
Guest
Posts: n/a
 
      07-16-2004
Hi,

CPAN:istribution:epends is good, but how about
CPAN:istribution::Resolv ?

 
Reply With Quote
 
 
 
 
Krishna Sethuraman
Guest
Posts: n/a
 
      07-17-2004
Robert Rothenberg wrote:

> Because it is more closely tied to CPAN and works with distributions
> rather than modules, I am thinking of calling it
> CPAN:istribution:epends.
>
> Comments or suggestions about the namespace would be appreciated.


The one recommendation I remember from many, many years ago was that in
the vein of the data structure being the real core of an object system,
that you name the module after a noun, rather than a verb. So 'Depends'
would be good (as short for 'dependencies'), and 'Distribution' is
better than 'Distribute'.

Krishna Sethuraman

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a variable name to a hash to name is part of the variable name Bobby Chamness Perl 2 04-22-2007 09:54 PM
print("my name is {name}, and {age}-year old {gender}", name, age, gender); =?iso-8859-1?B?bW9vcJk=?= Java 7 01-02-2006 04:39 PM
IE name="name" & form.name property bug Java script Dude Javascript 5 06-30-2004 03:07 AM
name = name.substring(0, name.lastIndexOf('.')); Help please Jack-2 Javascript 3 12-24-2003 04:39 PM
Re: Urgent! how to get object name, method name and attribute name based on the strings? ding feng C++ 2 06-25-2003 01:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57