design patterns

Command pattern is simply straightforward, and my implementation is one from many other possible variations. The usual,well-known command pattern is created by having: – a base class, interface, with a virtual function (usually called execute or similar) [crayon-5daeffa387d15358267837/] – multiple classes that implement the interface and override the execute function […]

Design patterns – Command

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