Refactoring to the Template Method Design Pattern
By Ryan Kelly,2014-05-13 08:32
n this article we'll take a simple piece of procedural code and see how maintaining it in an unthinking way gradually reduces the readability of code and scatters our rules and logic to different locations.
We'll then see how we can change the code so that the quality improves rather than degrades. Along the way we'll learn a thing or two about refactoring, inheritance and design patterns.