Hello Stephen, Monday, March 29, 2004, 10:43:22 PM, you wrote:
SC> I've been reading up on object oriented programming in PHP for a while now SC> and I just don't get what's the use in using it. It supposedly makes it SC> faster, but I don't really see how in any of my scripts. What's the SC> advantage of OOP anyway, and why are so many people using it now? What does SC> it have to offer then just creating files full of functions to include later SC> like I've always done? I used to think the same thing until I started using an OO approach to development (quite some years ago) and I have to admit I won't ever revert back to the "a hundred different functions spread over stacks of include files just to get things done" approach. OO doesn't make your code faster, it makes it *neater* and more intelligible. It also makes development time heck of a lot faster. Perhaps one approach to this would be to post an example of one of your scripts (not necessarily the source, more an overview) and then let someone explain how one OO approach might be to it. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php