What It Can Do Depends on Where It Is

What It Can Do Depends on Where It Is: State: What You Can Do Depends on Where It Is.

Updated

  1. State: What You Can Do Depends on Where It Is (Journeyman): When every method of a package starts by checking its status, a new status means editing every method, and the one you miss breaks a rule; drawing the rules as a state diagram, then giving each status its own class, puts each status's rules in one place: the State pattern.