|
|
||
William C. Wake's BlogRefactorings require new testsPosted by wwake on May 31, 2004 at 05:19 AM | Comments (0)Someone asked on the XP egroup about getting access to private methods for testing purposes. Others suggested a number of ways to get this effect, but it got me thinking about refactoring. Refactoring is often thought of as a pure, safe transformation: convert a program into another program with the same semantics but a better design. From the standpoint of a refactoring tool, the "same semantics" part is crucial. But refactoring also has a psychological side: a better design, but also a different design. A different design may induce people to act differently (indeed, that's why we do it!). In particular, a different design may give people different expectations about code. Following are some examples. In each case, I'll assume the code was created by test-driven development, and adequately tested before the refactoring.
Bookmark blog post: CommentsComments are listed in date ascending order (oldest first) | Post Comment | ||
|
|