[TYPO3-dev] Hooks with interface

Oliver Hader oliver at typo3.org
Mon Mar 2 14:38:08 CET 2009


Hi Dmitry,

Dmitry Dulepov schrieb:
> Hi!
> 
> Ingo Renner wrote:
>> just because you don't remember doesn't mean it isn't that way ;)
> 
> Of course, it does not. Therefore I'd like to see where it was decided.
> 
>> Interfaces define a clear contract with the core - which userFunc
>> doesn't. You'll imidiately notice when not sticking to that contract.
> 
> No need to explain it to me. I used to program in Java for ages and know OOP very well. May be even better than you can imagine.
> 
> The problem is that your approach sometimes is too theoretical (student-like) and very little practical. The omitted quote shows that clearly.
> 
> I am against too theoretical approaches that broke things. Breaking is easy but breaking is not building.
> 
> I am not going to argue on this with you.

The fact is, that we have different possibilities to use hooks. The
interface method is one of them we have to deal with since it's in the
Core. However, and here I agree, there was not discussion or approval to
define a rule like "only use hooks with interface in future".

However, bashing and devaluing others is not the kind of discussion that
brings us one step forward. If we want to find a conclusion, we should
stick to the facts and to the pros and cons.

olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3




More information about the TYPO3-dev mailing list