News Feed
Sections




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

IBM developerWorks:
Build seven good object-oriented habits in PHP
October 31, 2008 @ 07:51:59

The IBM developerWorks website has a few suggestions - seven of them, in fact - that they think can help make you a better PHP programmer.

With PHP's object-oriented (OO) language features, if you aren't already creating your applications with OO principles in mind, these seven habits will help you get started in the transition between procedural programming and OO programming.

Each of the seven OOP habits have more details below them, but here's the short list:

  • Be modest.
  • Be a good neighbor.
  • Avoid looking at Medusa.
  • Embrace the weakest link.
  • You're rubber; I'm glue.
  • Keep it in the family.
  • Think in patterns.

In each there's a "bad habit" and a "good habit" to explain the concept a bit more fully, everything from error handling to interfaces.

0 comments voice your opinion now!
oop objectoriented tutorial seven habit pattern error handling cohesion


blog comments powered by Disqus

Similar Posts

Paul Reinheimer's Blog: PHP BUG - err mm:core: failed to open semaphore file

Dave Marshall' Blog: Asynchronous cache priming with progress bars via Gearman, Memcache and Dojo

Dave Dash's Blog: Finding things using Zend Search Lucene in symfony

SitePoint PHP Blog: Social Network Authentication: Twitter and Facebook

Binary Tides Blog: Setup Apache 2.4 and Php FPM with mod proxy fcgi on Ubuntu 13.10


Community Events





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


list application series framework wordpress introduction community project developer api interview release library configure code bugfix threedevsandamaybe podcast laravel language

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