[TYPO3-core] RFC #7357: Use exceptions to detect missing user function
Martin Kutschker
martin.kutschker-n0spam at no5pam-blackbox.net
Sat Feb 2 18:32:19 CET 2008
Oliver Klee schrieb:
>>> I'll like a private static function best.
>> I don't think a private static function makes that much sense for those
>> few lines of code.
>
> That's 4 x 5 lines with the same code, meaning 4 places to change if we
> want to change the error handling. DRY (Don't Repeat Yourself) isn't
> only about aesthetics and readability in the code, it's about making it
> easy to maintain.
I don't think that adding an extra function to t3lib_div to save a few
line really increases maintainability. If you care about that I vote for
an inner function. It makes clear that it is very private.
Masi
More information about the TYPO3-team-core
mailing list