July 11, 2010
Codemanship's Code Smell Of The Week - Divergent ChangeClasses that have more than one distinct responsibility (more than one reason to change) violate the Single Responsibility design principle. In this example, Jason Gorman (that's me, folks) illustrates the use of the Extract Class refactoring to move responsibilities into new classes whilst still satisfying the original class's contracts.
Want to get 2 full days of advanced refactoring instruction for just 199 GBP? The Codemanship refactoring master class in London on July 24-25 has places available.
For coaching and training in refactoring, TDD and OO design, visit http://www.codemanship.com
Posted 18 hours, 36 minutes ago on July 11, 2010