News Feed
Sections




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

NetTuts.com:
SOLID Part 4 - The Dependency Inversion Principle
February 14, 2014 @ 11:53:22

NetTuts.com has posted the next part in their series (the looking at the SOLID development principles discussing the Dependency Inversion Principle, the final letter in the "SOLID" acronym.

It would be unjust to tell you that any one of the SOLID principles is more important than another. However, probably none of the others have such an immediate and profound effect on your code than the Dependency Inversion Principle, or DIP in short. If you find the other principles hard to grasp or apply, start with this one and apply the rest on code that already respects DIP.

They start off with a basic definition of the dependency inversion principle and an example of it in a more real world situation. They use it to separate out the handling of reading and rendering PDFs and eBooks. It's just some basic code, no real functionality, but it gives you an idea of how to architect the application.

0 comments voice your opinion now!
dependency inversion principle solid development part4 series

Link: http://code.tutsplus.com/tutorials/solid-part-4-the-dependency-inversion-principle--net-36872

blog comments powered by Disqus

Similar Posts

Paul Jones: Quicker, Easier, More Seductive: How To Tell A DI Container From A Service Locator

Phillip Shipley: Creating a PHP Nexmo API Client using Guzzle Web Service Client Part 4

NetTuts.com: Refactoring Legacy Code: Part 3 - Complex Conditionals

Robert Basic's Blog: Starting with Zend Framework - part 2

Gonzalo Ayuso's Blog: Looking for the perfect PHP IDE


Community Events

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


laravel5 language example opinion laravel voicesoftheelephpant interview conference library api php7 version community unittest podcast extension introduction framework release series

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