http://qs321.pair.com?node_id=770111


in reply to CPAN Modules on Github -- Naming conventions?

Well, if I had it my way, I'd call my github projects the same as the (main) namespace of the project I'd write. But github doesn't let me. I can't name a project Foo::Bar. So I use foo-bar.

As for -perl or -cpan suffixes, feel free to do so. Just don't expect me to do so. The added benefit is certainly not "Clear" to me.

Thoughts on a naming standard?

My only thought is a question, why is a standard needed, and what is its benefit? And furthermore, who's going to control it if you were to start one?

  • Comment on Re: CPAN Modules on Github -- Naming conventions?

Replies are listed 'Best First'.
Re^2: CPAN Modules on Github -- Naming conventions?
by tilly (Archbishop) on Jun 09, 2009 at 22:29 UTC
    The added benefit comes when you want to port a project you wrote in one language to another language.

    The possibility of interested people porting from Perl 5 to Rakudo (aka Perl 6) suggests that saying p5 is better than saying perl or cpan somewhere in the name. (Plus p5 is short. Short is good.) The fact that p5-... looks similar to existing naming conventions suggests to me that this is a good way to name things.

    Whether we should get all official and call it a "standard" is another thing entirely. But I'm definitely OK with calling it a "suggestion".

    Update: I left out a "p5".

Re^2: CPAN Modules on Github -- Naming conventions?
by saintmike (Vicar) on Jun 09, 2009 at 22:42 UTC
    As for -perl or -cpan suffixes, feel free to do so. Just don't expect me to do so. The added benefit is certainly not "Clear" to me.

    The benefit is that "libnet" (a C++ project, maybe the original project) won't clash with "libnet-perl" (the CPAN module). Also, if you're searching for a CPAN module on github, it helps if you can apply simple logic to get to the name of the github project instead of trying three different possibilities.

    My only thought is a question, why is a standard needed, and what is its benefit? And furthermore, who's going to control it if you were to start one?

    I'm not proposing a compulsory standard (which would be impossible to control anyway), but a naming convention like on CPAN: Sure, a couple of extroverted personalities are squatting in the top level namespace (Mr Ingerson comes to mind), but the majority are good citizens who get along just fine.

    One could argue that github should take control of this, but I'm afraid the genie is out of the bottle already.