On Mar 26, 2010, at 9:43 AM, Hector Virgen wrote:

I usually have two namespaces, a project-specific one named after the project and a global library that is shared between projects named after the company I am working for. I never use "App" or "My" like most examples.

Indeed, yes! Using generic names for namespaces defeats the original purpose of using namespaces -- i.e. trying to prevent your class names from conflicting with third-party class names you use in the same application.

What if someone were to develop a PHP framework called "My" with a class "My\FactoryFactoryFactory"? :-)

Regards,
Bill Karwin

Reply via email to