RE: [PEAR] OOP vs Linear programming and PEAR

From: Date: Tue, 15 Apr 2003 17:55:40 +0000
Subject: RE: [PEAR] OOP vs Linear programming and PEAR
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4856@lists.php.net to get a copy of this message
> From: Ronald Helmstrijd @home [mailto:info@ronaldh.nl] > Sent: Tuesday, April 15, 2003 7:37 PM > Now were are about to create a new project and I want to have the majority > of the code > in OOP. Others are a bit reluctant because they have heard that OOP is > difficult and that > it doesnt really offer much advantages over linear programming. I > disagreed and told everybody > that it does have advantages, like the blackbox theory, the library part > etc etc. They keep > bitchin' that its slower on the server when you includes a bunch of > classes and that it has much > overhead in that matter. > > "Post this on the regular Mailinglist" you might think, well.. Now comes > my real question, > what if I use pear.. when we were to use it, would everytime a site thats > being called upon include the whole > repository and read it in the servers memory, did anybody test this? No when you use PEAR you only include the packages you need. > And what are the main disadvantages of linear vs OOP? OOP does eat performance, but that is a trade off you can make if reusability is an issue. Also OOP helps when you have several people developing on different parts of the system as you can "hide away" the inner workings better. PEAR is a good example where OOP makes sense. There are a huge number of different packages maintained by an equally large number of developers that don't sit on each others lap. Without OOP we would constantly mess each others work up, especially where packages depend on other packages. Of course OOP is not the silver bullet. I generally do rapid prototyping in "linear programming" and then convert to OOP once thing get more "serious" or complex. Anyways there are tons of tutorials that will go into much greater detail on the usefulness of OOP in PHP ... www.google.com aeh I mean www.alltheweb.com is your friend ;-) Regards, Lukas

« previous php.pear.general (#4856) next »