[drupal-devel] New module nameing.
Aran Clary Deltac
aran at arandeltac.com
Sat Feb 26 07:09:54 UTC 2005
> Chris Cook wrote:
>>On Fri, 25 Feb 2005 17:21:36 -0800 (PST), Aran Clary Deltac
>><aran at arandeltac.com> wrote:
>>>Are there any conventions to nameing modules other than all lowercase
>>>underscores instead of spaces? I see in the current module list that
>>>patterns are emerging (like taxonomy_ and node_), but is anything
>>Despite the number of modules that use it, an underscore in the name
>>should probably be avoided.
> Agreed, the risk of namespace collisions is greatly increased by using
> underscores. If I named my module "node_page", for instance, I would
> think that the node_page namespace were all mine to use however I
> wished, but in fact, that would possibly conflict with the node module's
> various node_page_* function names. Cheesy example, but perhaps you get
> my point.
How about dashes? None of the codeing conventions call for dashes, so
there would be no conflicts/confusions with function names. It would be
much more appealing to the eye to see xml-node-tree instead of xmlnodetree
as a module name (for example).
> Great idea, though.
More information about the drupal-devel