Chris Cook wrote:
On Fri, 25 Feb 2005 17:21:36 -0800 (PST), Aran Clary Deltac <aran@arandeltac.com> wrote:
Are there any conventions to nameing modules other than all lowercase and underscores instead of spaces? I see in the current module list that some patterns are emerging (like taxonomy_ and node_), but is anything enforced?
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). Aran
Great idea, though.
-Mark