Duplicate Observed Data
From CSSEMediaWiki
(Difference between revisions)
Brett Ward (Talk | contribs) (This page needs some substance added to it, as the procedure for performing this refactoring is somewhat large and not easily explained) |
m (Reverted edits by Ebybymic (Talk); changed back to last version by Brett Ward) |
(One intermediate revision by one user not shown) |
Latest revision as of 03:23, 25 November 2010
Logic may get thrown in together with the code that handles the user interface, when really it should be split into the two seperate behaviours - the data and the interface. Most of this will be decomposing and moving methods, but the data will need to be duplicated.
The interface will need to become an observer, whilst the data is an observed class.
See Also