Inline Class
From CSSEMediaWiki
(Difference between revisions)
m (Reverted edits by Ebybymic (Talk); changed back to last version by Paul Williams) |
|||
Line 4: | Line 4: | ||
If a class has been re factored and lot of its previous responsibilities have been removed then fold this class into another class and get rid of it. | If a class has been re factored and lot of its previous responsibilities have been removed then fold this class into another class and get rid of it. | ||
− | + | == Additional Resources == | |
[http://sourcemaking.com/refactoring/inline-class SourceMaking.com] | [http://sourcemaking.com/refactoring/inline-class SourceMaking.com] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 03:22, 25 November 2010
A class isn’t doing very much. Move all its features into another class and delete it.
If a class has been re factored and lot of its previous responsibilities have been removed then fold this class into another class and get rid of it.