Nikita Popov wrote:
But I think I understood your main problem with generators now. Generators are very useful for the creation of reusable and pluggable components. You don't seem particularly fond of that kind of programming and prefer hardcoded and tightly coupled implementations. In that case generators probably won't give you anything. But they won't hurt you either;) You can still practice the One Big Method style of programming.
Working with millions of data records, one keeps the interface between database and php as tidy as possible. So even some areas of ADOdb have been 'adjusted'. The majority of my code is 'reusable', just plugging in a new object where I need to support a new data structure. In practice I SHOULD probably cut out ADOdb altogether for even better performance, but any of my stuff can run on any of the other databases ADOdb supports out of the box. bitweaver was forked from tikiwiki simply because that was using the 'One Big Method' of programming and we wanted to make things a LOT more modular and reusable!
-- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php