HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 382009 thumbnail
User 355617 avatar

By piccoloprincipe
via giorgiosironi.blogspot.com
Published: Mar 18 2010 / 16:26

The pattern of today is the State one: its intent is allowing an object to change its behavior when its state change, while hiding the state-related informations. The main role in this pattern is carried out by a State object that encapsulates the state-related behavior beyond a segregated interface. Instead of executing the same structure of conditionals in many methods of the Context object, it delegates part of its job to State. Switch constructs are often candidates for replacement by a State collaborator.
  • 10
  • 0
  • 2182
  • 0

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)



Voters Against This Link (0)