News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Paul van Iterson's Blog:
Why you want Object Oriented Programming in PHP
March 29, 2007 @ 11:05:00

In a new post to his "Quaint Tech" blog, Paul van Iterson talks about why you want (to use) object-oriented programming in your PHP applications versus the more procedural methods.

Most modern programming languages are based on an OO approach and don't even allow for procedural coding anymore (for instance in languages as Java, C++, C#, Python, and Ruby). Explaining OOP goes beyond the scope of this article, so for understanding OOP in PHP I'd like to point you in this direction. For now let's just say that OOP is about creating relatively small objects with specific functions that interact with each other to form a complete application.

Right off, he lists two advantages to using OOP methods (reusability and better structure) and a disadvantage (can be more time consuming to write). He does still recommend it though to any "serious PHP developer taking on serious projects". He illustrates the point with some of his own experience - an application for a real estate firm.

0 comments voice your opinion now!
objectoriented programming example advantage disadvantage objectoriented programming example advantage disadvantage


blog comments powered by Disqus

Similar Posts

KillerPHP.com: The Zend Framework: Writing Object-Oriented PHP with Ease

Chris Jones: DTracing a PHPUnit Test: Looking at Functional Programming

Wez Furlong's Blog: PHP Objective-C Bridge

Matthew Weir O'Phinney's Blog: PHP 5's Reflection API

W3Techs.com: Highlights of web technology surveys, Nov. 2010: 3/4 of all websites are based on PHP


Community Events





Don't see your event here?
Let us know!


api release conference community symfony introduction threedevsandamaybe laravel tips language list zendserver interview podcast bugfix voicesoftheelephpant deployment series code framework

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework