2007. 03. 19, hétfő keltezéssel 16.51-kor Richard Lynch ezt írta: > I don't think you'd want the RAM/performance hit of that, even in C... > [shrug] > > OTOH, I don't think I'd even want to use an ORM, so feel free to > ignore me completely. :-) >
Hi! I think a code is more manageable if it's more structured. This additional structure however means "unoptimal" code, that will run slower, and consume more memory. Some balance point should be found, where the project is still manageable, but the resource overhead is minimal. Managing C code with limited structure (for bigger projects than hello word) is hell. This is why structured programming and then the OOP was invented. Having a separate object for every data value is a bit idealistic (it would be best, if it wouldn't have the object construction / destruction overhead. But it has. I choose to implement this "idealistic" approach when I started to see switch-case blocks in my code, that did not fit in my screen (about 50 lines). Adam -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php