Separate Query from Modifier
From CSSEMediaWiki
Revision as of 04:39, 21 September 2008 by Jason Clutterbuck (Talk | contribs)
Straight from Martin Fowler 2003:
"You have a method that returns a value and also changes the state of an object.
Create two methods, one for the query and for the modification."