Extract Variation

a class its logic has become complicated due to variations on its core responsibility
encapsulate the source of variation and extract it from the host class

Context:

Extract Variation is an example of Introduce Indirection where the indirection level serves to separate the client code from the varying concept by encapsulating the problem area.

See also : Trade Variation For Duplication, Trade Duplication For Variation


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

[ Overview Page ] [ Thumbnail Catalog ]