News Feed
Sections




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

Brandon Savage's Blog:
Five Tips To Make Good Object-Oriented Code Better
October 28, 2009 @ 07:58:45

Brandon Savage has posted a set of five tips on how you can make your object-oriented code work better and be easier to maintain in the long run.

Last week, I did a talk at the Frederick Web meetup about tips and tricks for improving your object-oriented code. A lot of these tips were adapted from a fabulous presentation by Stefan Priebsch but the ideas are by no means original to him, and they're exceptionally good ideas when you're talking about object-oriented code. Slides are at the end of this blog post, and I'm happy to do this talk over again for local groups.

His list of five is:

  • Use Objects. Lots of Objects
  • Use Interfaces To Make APIs Predictable
  • Use Dependency Injection
  • Composition Over Inheritance
  • Create Loosely Coupled Classes
0 comments voice your opinion now!
oop object tip


blog comments powered by Disqus

Similar Posts

Nefarious Designs: Object-Oriented PHP Part 1: Definition

Stubbles Blog: Lazy loading of classes stored in a session without __autoload()

Stubbles Blog: Some remarks to serialization without pity

Community News: PHPWeekender Full Slides Posted

rooJSolutions Blog: Watch-out PHP 5.3.7+ is about.. and the is_a() / __autoload() mess.


Community Events





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


version voicesoftheelephpant framework podcast series conference threedevsandamaybe language interview introduction configure community release symfony laravel api opinion composer unittest list

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