Click here to get back home

Marquis:: namespace on CPAN.

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Marquis:: namespace on CPAN. Mumia W. (reading news) 12-05-2006
Posted by Mumia W. (reading news) on December 5, 2006, 9:32 pm
Please log in for more thread options


I think a good place for me to put my future modules on CPAN is into the
Marquis:: namespace--which currently does not exist.

What do the rest of you think of this idea?

--
paduille.4060.mumia.w@earthlink.net

Posted by Uri Guttman on December 5, 2006, 11:41 pm
Please log in for more thread options


writes:

MW(n> I think a good place for me to put my future modules on CPAN is into
MW(n> the Marquis:: namespace--which currently does not exist.

MW(n> What do the rest of you think of this idea?

if this is a personal set of random modules, i would say no. top level
namespaces should be used for larger namespaces. why do you want this
name? what kind of modules and are they related? does marquis have a
technical connection here or is it just a name you like?

uri

--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org

Posted by Mumia W. (reading news) on December 6, 2006, 10:23 am
Please log in for more thread options


On 12/05/2006 10:41 PM, Uri Guttman wrote:
writes:
>
> MW(n> I think a good place for me to put my future modules on CPAN is into
> MW(n> the Marquis:: namespace--which currently does not exist.
>
> MW(n> What do the rest of you think of this idea?
>
> if this is a personal set of random modules, i would say no. top level
> namespaces should be used for larger namespaces. why do you want this
> name? what kind of modules and are they related? does marquis have a
> technical connection here or is it just a name you like?
>
> uri
>

It's just a name I like. Underneath Marquis:: would be a hierarchy of
namespaces for the modules I've written such as Marquis::Math and
Marquis::Sort.

I don't want to create more namespace pollution on CPAN, but I do want
to keep my module hierarchy separate from the others.

The first module I intend to submit is Marquis::Sort::KeyExtract :

> NAME
> Marquis::Sort::KeyExtract - Sort using a user-specified key extractor
>
> SYNOPSIS
> use Marquis::Sort::KeyExtract;
>
> my %months = (
> January => 1,
> February => 2,
> March => 3,
> April => 4,
> May => 5,
> );
>
> my @array = (
> 'District conferences will happen in =February (20-21)',
> 'Coat sales are in =January.',
> 'In =May, we meet with the directors.',
> '=March will see new matrices form.',
> 'Taxes are to be paid in =April.',
> );
>
> my $sorted = sort_keys {
> code => sub { s/=(\w+)/$1/ && $months },
> }, \@array;
>
> print "$_\n" for (@$sorted);
> [...]


http://home.earthlink.net/~mumia.w.18.spam/perl/KeyExtract.pod
http://home.earthlink.net/~mumia.w.18.spam/perl/KeyExtract.pm



--
paduille.4060.mumia.w@earthlink.net


Posted by Uri Guttman on December 6, 2006, 10:37 am
Please log in for more thread options


writes:

MW(n> On 12/05/2006 10:41 PM, Uri Guttman wrote:
writes:
>> MW(n> I think a good place for me to put my future modules on CPAN
>> is into
>> MW(n> the Marquis:: namespace--which currently does not exist.
>> MW(n> What do the rest of you think of this idea?
>> if this is a personal set of random modules, i would say no. top
>> level
>> namespaces should be used for larger namespaces. why do you want this
>> name? what kind of modules and are they related? does marquis have a
>> technical connection here or is it just a name you like?
>> uri
>>

MW(n> It's just a name I like. Underneath Marquis:: would be a hierarchy of
MW(n> namespaces for the modules I've written such as Marquis::Math and
MW(n> Marquis::Sort.

MW(n> I don't want to create more namespace pollution on CPAN, but I do want
MW(n> to keep my module hierarchy separate from the others.

that is not a good reason to get a top level namespace.

MW(n> The first module I intend to submit is Marquis::Sort::KeyExtract :

what does the Marquis prefix do? the rest is fine as it is.

you can always upload modules to your cpan home dir. email the modules
list to discuss namespaces but they will likely agree with me that there
is no need for this top level name. just put sort modules under Sort::,
etc. your home dir will list all of your modules so you can see them all
that way.

uri

--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org

Posted by Mumia W. (reading news) on December 6, 2006, 6:21 pm
Please log in for more thread options


On 12/06/2006 09:37 AM, Uri Guttman wrote:
> [...]
> you can always upload modules to your cpan home dir. email the modules
> list to discuss namespaces but they will likely agree with me that there
> is no need for this top level name. just put sort modules under Sort::,
> etc. your home dir will list all of your modules so you can see them all
> that way.
>
> uri
>

I started thinking about putting my module into the Sort::KeyExtract
namespace, and I got curious about what other Sort::Key* modules were in
that area.

It seems that Salvador Fandiņo has already written a Sort::Key which
seems pretty good.

Actually, it's frighteningly good. I'll delay posting my module for
right now.

http://search.cpan.org/dist/Sort-Key/lib/Sort/Key.pm
versus
http://home.earthlink.net/~mumia.w.18.spam/perl/KeyExtract.pod

:-[


--
paduille.4060.mumia.w@earthlink.net

Similar ThreadsPosted
DISCUSS: CPAN Namespace for AJAX August 3, 2005, 9:18 am
Choosing a good namespace for a module to upload to CPAN July 14, 2004, 1:46 pm
Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails May 10, 2005, 9:51 pm
Use CPAN or CPAN::Shell for LOCAL ONLY install from tarballs? May 9, 2008, 1:04 pm
SGF namespace August 1, 2005, 5:18 pm
New Namespace? January 27, 2007, 3:00 am
new framework, namespace help please! September 12, 2005, 7:15 am
TL1 module namespace May 12, 2005, 1:13 pm
A module looking for a namespace March 4, 2005, 11:15 pm
same namespace as main June 29, 2005, 2:56 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap