July 11, 2010

...Learn TDD with Codemanship

Codemanship's Code Smell Of The Week - Divergent Change

Classes 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 7 years, 9 months ago on July 11, 2010