Tuesday, June 07, 2005

Strategy 8 - can't move anything

You don't like how the code looks. Your methods are eight lines long, but they only call methods in your current object. Moving those methods is not easy because they reference the current object.

Refactor by Inlining. You need to find different ways to break up the methods, so that dependency on the current object is broken. Once you've inlined everything, try moving stuff around grouping it different ways. Then extract methods and see if you can move them elsewhere.


Post a Comment

<< Home