In this last step, we finally get rid of the switch-statement that’s been bothering me since the start. Using the State Pattern (Gang of Four) we achieve an extensible and more comprehensible implementation. Unfortunately, there’s not too much too support for this kind of task, so we finally have to […]