Separate Query from Modifier

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by Ebybymic (Talk); changed back to last version by Warwick Irwin)
 
Line 5: Line 5:
 
''Create two methods, one for the query and for the modification.''"
 
''Create two methods, one for the query and for the modification.''"
  
>==See also==
+
==See also==
 
[[Command query separation]]
 
[[Command query separation]]
 
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://ypivotuhuno.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 
----
 
=[http://ypivotuhuno.co.cc CLICK HERE]=
 
----
 
</div>
 

Latest revision as of 03:22, 25 November 2010

Straight from Martin Fowler 1999:

"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."

See also

Command query separation

Personal tools