Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Should I register a namespace in PAUSE before every cpan module upload?

by Anonymous Monk
on Jul 06, 2012 at 08:46 UTC ( #980227=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

If I wanted to upload a small standalone cpan module, like PDL::SomeMatrixFunc, which implements a single function and I don't plan on making any sub-modules (like PDL::SomeMatrixFunc::OtherStuff) and don't foresee anyone else doing so either, should I register the namespace PDL::SomeMatrixFunc?

Is it only necessary for "big" projects and subprojects, like Moose and PDL? Or is it always necessary?

If it is necessary, is it a problem I already uploaded the tarball?

Comment on Should I register a namespace in PAUSE before every cpan module upload?
Re: Should I register a namespace in PAUSE before every cpan module upload?
by moritz (Cardinal) on Jul 06, 2012 at 09:11 UTC

    You don't need to register a namespace before uploading a new module.

    As far as I can tell, the only purpose of registering a namespace is to prevent others from uploading modules into subnamespaces (for example PDL::SomeMatrixFunc::ReallyFast). I think it doesn't even prevent uploading, search.cpan.org just shows the "not an official upload" warning in red letters.

    I have uploaded about 9 distributions to CPAN, and haven't registered a single namespace for any of them.

Re: Should I register a namespace in PAUSE before every cpan module upload?
by Anonymous Monk on Jul 06, 2012 at 09:40 UTC
    There are only two real reasons to register a namespace. One is to reserve the namespace without having to ever upload a distribution to CPAN. Simply being the first to upload to a namespace performs a first-come registration (See 1). Note that either method of registering does not reserve the namespaces below it. So registering or uploading Foo, does not reserve Foo::Bar.

    The only other reason to register a namespace is to be included in the topic list shown on the search.cpan.org homepage. But that list is barely useable and most people search nowadays and don't bother to browse.

    I personally hate reserving without uploading. When I searched CPAN to see if a namespace was in use before I uploaded my own distribution, nothing showed up. But when I uploaded, mine was listed as unauthorized because somebody years ago had pre-registered it and never made use of it. The author also refused a request to assign it to me, claiming he one day plans to make use of it. There are many claimed, but unused namespaces like that.

    1: https://pause.perl.org/pause/authenquery?ACTION=peek_perms

      Please don't use square brackets in the manner above. If your taste in formatting footnote pointers runs to [...] use &#91;...&#93; because the local variant of HTML uses square brackets the way standard HTML uses <a href=...</a>.

      That means you could also have created the link thusly:
      &#91;https://pause.perl.org/pause/authenquery?ACTION=peek_perms&#93;
      which would display the url, linkified;
      or
      &#91;https://pause.perl.org/pause/authenquery?ACTION=peek_perms|<super>1</super>1&#93;
      which would render as 1. -- a superscripted 1 -- and thus would serve as a link to PAUSE as well as a pointer to a footnote... probably not what you want, here, but useful in some cases.

      References: Perl Monks Approved HTML tags, Markup in the Monastery, What shortcuts can I use for linking to other information?, and Writeup Formatting Tips

Re: Should I register a namespace in PAUSE before every cpan module upload?
by kcott (Abbot) on Jul 06, 2012 at 10:23 UTC
Re: Should I register a namespace in PAUSE before every cpan module upload?
by tobyink (Abbot) on Jul 06, 2012 at 12:54 UTC

    There's very little reason to register module namespaces these days. Most people don't.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
Re: Should I register a namespace in PAUSE before every cpan module upload?
by DrHyde (Prior) on Jul 09, 2012 at 10:17 UTC
    Don't bother registering, it's an obsolete mathom left over from the very early days of the CPAN before there were services like search.cpan and metacpan and tools like CPAN.pm, and is now completely irrelevant.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://980227]
Approved by kcott
Front-paged by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (14)
As of 2014-12-19 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (91 votes), past polls