News Feed
Sections




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

Tobias Schlitt's Blog:
iRefuseToUse aNamingScheme
July 01, 2008 @ 10:25:30

Tobias Schlitt has posted some comments on things recently said on PHP's upcoming support for namespaces - specifically on the ideas about naming classes the could conflict with PHP's own internal ones.

Namespaces are potentially coming in PHP 5.3 (does anyone believe?) and people start discussion about how they can even shorten their names from Abstract to aSomething and from Interface to iAnotherthing. I'm a fan of short names. [...] I agree with these rules and am of the opinion that class names must all above anything contain a semantic. Interfaces indicate what you can do with an object, while abstract classes model that different classes have a common base and can be used in the same mannor. And indeed you can add these semantics to names without using the terms.

He gives a few examples, things like Persistable, Configurable and Reflector.

0 comments voice your opinion now!
semantics naming scheme php5 namespace scheme conflict


blog comments powered by Disqus

Similar Posts

Ibuildings Blog: PHP 5.3 from a development manager's perspective

NetTuts.com: Better Workflow in PHP With Composer, Namespacing, and PHPUnit

Community News: PHP 5.2.8 Released

Job Posting: Assembleron Ltd Seeks PHP 5/MySQL/Ajax Developers (Reading, UK)

Vinu Thomas's Blog: Quercus - PHP5 in 100% Java


Community Events





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


api framework threedevsandamaybe podcast composer series release conference configure interview laravel community unittest list symfony language introduction version opinion voicesoftheelephpant

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