News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Community News:
Userland Naming Guide Launched
August 14, 2006 @ 11:37:26

An official guide to choosing names for identifiers in userland has been added to the PHP manual on PHP.net. In his latest post, Lukas Smith talks about it:

So now we finally have some guidelines on how users should name their identifiers to be fairly future proof. This should hopefully help reduce the amount of pain people suffer when PHP adds new features like a class for Date or File handling. Although the two mentioned examples have settled on using DateTime and FileObject to get around the issue at least partially.

The guide itself is unfortunately spread over 3 pages, which does not seem to make sense since there is really not that much content there yet. Then again the guide may get expanded in the future. Anyways I recommend that every serious PHP programmer have a look at the guide. If there are any issues please let me (or the PHPDoc team) know. Otherwise make sure you adapt your internal CS to match this guide.

The guide talks about the naming of items in the global namespace (functions, classes, interfaces, etC), some rules to follow for internal identifiers, and some quick tips on naming to create pseudo-namespaces.

0 comments voice your opinion now!
userland namespace guide posted global userland namespace guide posted global


blog comments powered by Disqus

Similar Posts

Ben Ramsey's Blog: Flickr Namespace and array_multisort() Issues

Gonzalo Ayuso's Blog: First impressions about namespaces in PHP

Symfony Project Blog: We're writing a book

Zend Developer Zone: Interview w/Francois Zaninotto & Fabien Potencier (Definitive Guide to symfony)

Christopher Jones' Blog: Guide to PHP and Ruby/Ruby on Rails Sessions at Oracle OpenWorld 2007


Community Events





Don't see your event here?
Let us know!


language bugfix zendserver tips symfony list release conference podcast threedevsandamaybe introduction api framework series code development laravel interview deployment community

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework