Hi Ronald,

Am 05.12.2007 um 11:08 schrieb Ronald Chmara:

http://www.phpbuilder.com/lists/php-documentation-list/ 2001071/0109.php

I, for one, would not enjoy typing out:
"T3_MyPackage_MySubPackage_Controller_DefaultController" any more often than I absolutely *had* to.

well, in a way I agree - I don't like typing more than I need either. However, for me verbose naming of methods, variables and classes is a very important factor for readable (and maintainable) code -
but that's probably yet another story.

Especially in a framework context there a lot of options how you can make things more convenient, with convention over configuration for example. In the end it might turn out that a developer doesn't have to type class names that often anymore and the length of such a name gets less important.

Finally, another important reason for us to not use namespaces is the lack of available refactoring tools. Imagine you want to rename a class "T3_Cool_Fancy_Stuff" to "T3_Cool_Fancy_Tool". A global search / replace and renaming the class file will usually do - if you use the full class name everywhere. However, just trying to
search and replace "Stuff" will probably break your code.

robert
--
http://typo3.org/gimmefive
http://buzz.typo3.org/people/robert-lemke/




Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to