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:
Using objects doesn't make an application object oriented
July 16, 2013 @ 12:22:34

In this recent post Brandon Savage suggests that just using objects in your application doesn't mean that it's truly "object oriented development." There's other criteria that need to be met to really fit this description.

Lots of developers understand that object oriented code offers advantages over procedural programming. And so, they begin working on creating objects in their own projects, and eventually feel pretty good about what they've done. After all, if they're using objects, their code must be object oriented, right? Well, not exactly.

He breaks it down into three main points that developers should consider when working with OOP in their apps: splitting responsibilities between classes, being polymorphic and using dependency injection. There's no code samples to back up the concepts here, but it's a decent list to think about. There's plenty of tutorials out there about SOLID development and dependency injection in PHP apps, so you might check some of those out to help with these concepts.

0 comments voice your opinion now!
oop objectoriented development responsibility polymorphic dependencyinjection

Link: http://www.brandonsavage.net/using-objects-doesnt-make-an-application-object-oriented

blog comments powered by Disqus

Similar Posts

Developer.com: Drupal Development Proliferates as Version 7 Nears

Reddit.com: Good guidance for shifting to OO from Procedural coding

Elated.com: Object-Oriented PHP: Autoloading, Serializing, and Querying Objects

PHPBuilder.com: Cross-Platform Database PHP Development

Chris Hartjes' Blog: Scope Is Not a Mouthwash


Community Events





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


configure laravel install release refactor unittest code language interview testing framework podcast wordpress developer threedevsandamaybe introduction community list opinion series

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