Introduce Duplication

code that's hard to refactor needs extra functionality
duplicate the code to preserve client stability

Context:

Although refactorings generally strive to remove duplication from the code, duplication can actually be quite useful. Introduce Duplication is a refactoring that deliberately duplicates code for the sake of minimizing client impact.

See also :Eliminate Duplication By Composition, Eliminate Duplication By Inheritance

Refactoring Thumbnails, Copyright © 2004 - 2005, Sven Gorts, All Rights Reserved.

[ Overview Page ] [ Thumbnail Catalog ]