Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Net-GitHub CPAN distribution.

Report information
The Basics
Id: 76644
Status: open
Priority: 0/
Queue: Net-GitHub

People
Owner: Nobody in particular
Requestors: sharyanto [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: WWW::GitHub
Please consider renaming this to WWW::GitHub, as interface to websites/ web services should be put under WWW:: by convention. Thanks,
Hi, there is a lot of modules like Net::GitHub which starts with Net:: eg: Net::Flickr::Simile, Net::Amazon, Net::Disqus, Net::Google::* even I agree with you that WWW:: is more suitable, but there isn't a plan to change the name for now. (actually it's too hard to do, it will break others' code) Thanks
On Tue Apr 17 21:42:53 2012, FAYLAND wrote: Show quoted text
> Hi, there is a lot of modules like Net::GitHub which starts with Net:: > > eg: Net::Flickr::Simile, Net::Amazon, Net::Disqus, Net::Google::* > > even I agree with you that WWW:: is more suitable, but there isn't a > plan to change the name for > now. (actually it's too hard to do, it will break others' code) > > Thanks
Hi, thanks for the quick response. Sorry for replying once more. To avoid breaking client code, you can create an alias to WWW:: and not remove Net::. From PAUSE's guide of naming modules: "The Net namespace is one of the most abused namespaces out there. Originally designed as a home for the code that knows how to talk various defined network protocols, such as FTP, HTTP, NNTP, and so on, people started using it for code that merely used the network without knowing anything about it. Modules that interact with websites use the network, but they aren't about the network, and they have much better homes in WWW or WebService. If you are implementing a network protocol rather than an application protocol, then Net might be for you. Otherwise, it isn't." But anyway this is just a suggestion. Thanks.
On 2012-04-17 18:42:53, FAYLAND wrote: Show quoted text
> Hi, there is a lot of modules like Net::GitHub which starts with Net:: > > eg: Net::Flickr::Simile, Net::Amazon, Net::Disqus, Net::Google::* > > even I agree with you that WWW:: is more suitable, but there isn't a > plan to change the name for > now. (actually it's too hard to do, it will break others' code)
There is a lot of precedence on CPAN for changing the name of a distribution, creating a new module with the new preferred name, but continuing to ship the old module name for a while with a deprecation notice, and then changing its code to add a warning at load time which refers to the new name, and then removing the old module from the distribution (so the old module still exists in the index, but is no longer being updated). I've done this a few times in different dists.