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:
Refactoring Legacy Code Part 8 - Inverting Dependencies for a Clean Architecture
July 10, 2014 @ 11:04:13

NetTuts.com has posted part eight in their series looking at refactoring legacy code - Inverting Dependencies for a Clean Architecture. In this latest post they move away from just refactoring the code and start to look more at fixing the architecture of the application.

Old code. Ugly code. Complicated code. Spaghetti code. Gibberish nonsense. In two words, Legacy Code. This is a series that will help you work and deal with it. It's now time to talk about architecture and how we organize our newly found layers of code. It's time to take our application and try to map it to theoretical architectural design.

They look at the current structure of the code (well, of their refactored version) and how to apply the Dependency Inversion Principle (part of the SOLID methodology) via interfaces. The code is included for the refactor as well as tests to add to their "Golden Master" test suite to ensure continued correct functionality.

0 comments voice your opinion now!
refactor legacy code series part8 inverting dependencies

Link: http://code.tutsplus.com/tutorials/refactoring-legacy-code-part-8-inverting-dependencies-for-a-clean-architecture--cms-21659

blog comments powered by Disqus

Similar Posts

Brandon Savage's Blog: Superglobals In Classes: Revisited

Matthew Weier O'Phinney: Deployment with Zend Server (Part 8 of 8)

NetTuts.com: Refactoring Legacy Code: Part 1 - The Golden Master

MaltBlue.com: Zend\Db\Sql\Select - The Basics (Columns, Limit & Order)

Jani Hartikainen's Blog: Zend Framework components as separate zips from the main distro? Sure!


Community Events





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


opinion list laravel library framework install community api language series voicesoftheelephpant introduction release symfony interview podcast deployment package bugfix tips

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