RE: [PHP-DEV] parent_ctor()
| From: | Rasmus Lerdorf | Date: | Mon, 17 Jul 2000 14:49:12 +0000 |
| Subject: | RE: [PHP-DEV] parent_ctor() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-24771@lists.php.net to get a copy of this message | ||
> Yes, but code managability and reuse is also a good point when using OO; it
> doesnt need to be complicated at all, small apps can be made with OOP just
> as easily as with non-OOP, but you will find it alot easier to extend and
> integrate the OO version than the other one.
> And it's not like bigger projects shouldnt be done in PHP, afterall a simple
> treestructure, or a shopping solution can be much easier when done in OOP,
> aswell as complete e-business solutions integrating proprietary economy
> systems and so on.
> Saying that just because these are on the web, means that they shouldn't be
> done in OOP is imho, plain wrong.
> At least that's what I have found, and I am sure some other people will
> agree with me.
There is nothing preventing you from writing clean non-OOP code. And if
all you are worried about is encapsulation and code re-use, PHP's existing
OOP features have everything you need.
-Rasmus