RE: [PHP] What's the use in OOP?
| From: | Chris Shiflett | Date: | Tue, 30 Mar 2004 02:31:06 +0000 |
| Subject: | RE: [PHP] What's the use in OOP? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181765@lists.php.net to get a copy of this message | ||
--- Robert Cummings <robert@interjinn.com> wrote:
> > Perhaps, but I would say that most people who make this assertion
> > understand OO. The performance penalty is not a myth. Just as
> > templating incurs a performance penalty, so does OO. The reward
> > can be worth it, of course, in terms of organization and ease of
> > use.
>
> I'd just like to point out as I often do, that the templating
> system's implementation determines if there is a performance
> penalty :) compiled-to-source templating systems don't incur such
> a run-time performance hit
Then OOP isn't slower either, because you can use something like APC.
Moral of the story: that argument is irrelevant. :-)
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming Fall 2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/