[Typo3-dev] singletons instead of pre-loaded objects

dan frost dan at danfrost.co.uk
Mon Aug 9 13:40:48 CEST 2004


I have recently built a little class which i use to manage loads of my 
code. It has a "makeSingleton"-type function which i have used to reduce 
the number of objects. In one case it reduced it from 300 to 80! But, i 
do *very* OO stuff and make much smaller objects than the TYPO3 core 
tends to have. For TYPO3, singleton might only make sense for a few things.

dan

Kasper Skårhøj wrote:
> Hej Martin.
> 
> I thought that Robert Lemke might have some input. Generally I wouldn't
> mind if you, him and other OO nerds can agree and suggest a common
> framework for *future* applications. But generally I will be very
> reluctant to change current architectures because it is a HUGE work to
> change not only code but also all documentation etc. That kind of stuff
> has to be argued from more than just "beauty" but also from
> return-on-investment. 
> 
> But this should be no limitations to your thoughts in general as long as
> GLOBALS['TSFE'] may stay GLOBALS['TSFE']...
> 
> - kasper
> 
> 
> 
> 




More information about the TYPO3-dev mailing list