Refactoring to the Template Design Pattern
Submitted by admin on Wed, 05/12/2010 - 17:58
The first of a two part article on refactoring to Design Patterns is now available on codeproject.com. The first article takes you from a single routine that is doing too much and shows the problems with trying to maintain it.
It then shows how to rector the code to the Template Method design pattern and demonstrates how new features can be added to the code while improving rather than degrading the quality of the code.
The sample code is in C#
Part two is coming soon and will take things a step further by introducing the Dependency Injection pattern.
»
- Login to post comments
