Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Namespace for local/internal modules?

by chrestomanci (Priest)
on May 25, 2012 at 09:32 UTC ( #972387=note: print w/replies, xml ) Need Help??

in reply to Namespace for local/internal modules?

Similar to the idea of using you CPAN id, you could also use your company name as the root of your namespace. Most of companies I have worked for in the past five years have done that, and it works fairly well.

Obviously if you work for a massive corporation you many find that your have replaced clashes at the root of the namespace with clashes at the next level down, where your version of <company>::Math conflicts with another team half a continet away.

The other issue would be if you work for an internet company where the public are creating both authorised an un-authorised API interfaces to your publicly facing systems, so if you work for Google, then it would probably not be a good idea to use that as a namespace root, and you will conflict with other people creating Google APIs.

  • Comment on Re: Namespace for local/internal modules?

Replies are listed 'Best First'.
Re^2: Namespace for local/internal modules?
by Anonymous Monk on May 25, 2012 at 10:33 UTC

    reverse it, Local::elgooG::Brownies

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://972387]
[ambrus]: ad code examples.
[ambrus]: I'm not trying to recommend PHP, but I think it has way too bad a name because of its past.
[ambrus]: This is different from MS Word, which was already a good editor in the pre-unicode days (in word for windows versions 2 and 6, which ran on windows 3 but also on windows 95), only it wasn't trying to solve the task of writing maths papers back then.
[Discipulus]: ah ok, sounds reasonable; with no fear: Perl all life long
[ambrus]: Mind you, LaTeX is currently still useful for writing math paper or snippet content without styling in such a way that the
[ambrus]: formatting conventions of a journal or website can be quickly applied to it, and MS Office and LibreOffice has not quite solved this (although it's better for this than it used to be),
[ambrus]: which is sort of a drawback compared to the ages of typewritten manuscripts representing content only to which the typesetter applies formatting, but that process required much more manual labor.
[ambrus]: If you want to typeset a manuscript, you can still do much less work then in the manual typesetting ages and get good formatting.
[ambrus]: All with only cheap modern computers and software.
[ambrus]: Something you can have at home and your corner print shop, without a whole printing press's worth of equipment.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2017-09-26 11:12 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (293 votes). Check out past polls.