Daily Archives: March 15, 2017



state 1
State pattern is very important and, when faced with the usual implementation of  “a state machine” (enum + switches) we should consider refactoring to use this design pattern instead, especially if we consider from start that we will have many state-dependent functions and/or if we expect changes into the states (which […]

Design patterns – State