[TYPO3-ect] Registry-Pattern for lib/div?

Christian Welzel gawain at camlann.de
Thu Aug 16 09:13:09 CEST 2007


Elmar Hinz wrote:

>> I believe introducing a new concept like a registry doesn't make lib/div
>> easier to the average extension developer.

> How about something in the middle?

What i mean is: we should better stick to some more typing than to try to
shorten the stuff to much and have therefore to introduce more and more 
objects and concepts.
With each concept we add complexibility that makes it harder for the
developer to understand how the lib/div works and that directly leads to 
new lib/div clones and/or bad code because the dev didn't find the lib/div
way of doing something and decides to do it himself.
And take into account, that nowadays nearly every dev-environment provides
autocompletion for methods and variables. So the dev even has not so much to 
type.

With the current
$this->controller->configurations->get($key);
the developer exactly knows at the first view what happens.

-- 
 MfG, Christian Welzel

  GPG-Key:     http://www.camlann.de/key.asc
  Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15


More information about the TYPO3-team-extension-coordination mailing list