"Overusing OO features: PHP is not an object oriented language, while it
does provide object oriented features, you should always be conscious of the
fact that using PHP's object oriented features will significantly slow down
your code."

- a quote taken from Sterling Hughes' "top 21 PHP programming mistakes"
listed on the Zend homepage.

How true is this?

I've been coding in PHP for years now and have almost always written
software in the same general way..My code is *totally* object oriented. I
have individual classes for individual modules(parts of the application) --
everything is in a class.. I've never really noticed a problem with PHP's
execution speed but then I write applications in PHP, not just dynamic web
sites so the things I write rarely get a whole lot of traffic (most apps are
intranet apps and are not available to everyone on the net)..

So... Is this a bad way of doing things in PHP? Exactly what is
"significant" slow down that Mr. Hughes talks about and does anyone have any
real-world examples that might back up what he says? I am in the process of
writing some benchmarks but would still be interested in any and all other
data from other sources...

Thanks!!

-Mitch





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to