title: Dealing with nested if then else/nested switch statements
body: <p>Are there any design patterns/methods/ways to remove nested if then else conditions/switch statements?</p>
  
  <p>I remember coming across some methods used by the Google folks listed in a Google code blog post. Can’t seem to find it now though</p>