Left on the Web

Namespaces in PHP

Namespaces in PHP seems to be the current hot topic. A lot of people want it, a lot of people don't. Let me through in yet another opinion.

OK, let me be clear. I don't think that namespaces will add a lot in terms of functionality, usefulness while programming itself. However, apart from being able to develop your applications using useful functions, you also need to be able to manage your code. And this is where namespaces come in.

Using namespaces, one will be able to easily group (or "package" ;) together related pieces of code. It will also ensure that when you're using different pieces of different libraries you did not develop yourself, that they won't clash anymore due to similar namings.

So, even though for day to day code typing it won't change a lot, it will definitely change a lot for technical project and codebase management. Important enough for me and anyone else doing professional PHP development. 


Add comment
© 2004 - 2009 Stefan Koopmanschap + Powered by Symfony, photos powered by Flickr, links powered by Ma.gnolia, Shanghai smilies by Iconbuffet. Feeds: rss / atom. Left on the Web v4.2.3