[TYPO3-dev] Update database when saving plugin flexform configuration in BE?

JoH asenau info at cybercraft.de
Wed Sep 9 22:48:30 CEST 2009


> JoH asenau wrote:
>> To get the superfluous loop from the core instead? ;-)
>
> No. For three reasons:
> - to make my code shorter
> - to make my code more readable
> - to ensure that no memory leaks left
>
> There is a difference in the core loop and in this loop. In Gerhard's
> case he knows that there will be a single result but does the loop.
> This is unnecessary. Core is different: it offers API function that
> is universal. Loop for this case is ok there.

When you already know there will be just a single result it is OK to call an
API function that does an unnecessary loop just because it's an API
function?!?

Wasn't it you, who complained about programmers who just follow their
paradigms instead of taking care of the client's needs?
One of the major needs is performance and this doesn't allow unnecessary
stuff.

BTW: What about introducing exec_SELECTgetSingleRow() ?

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
TYPO3 workshops: http://workshops.eqony.com






More information about the TYPO3-dev mailing list