1 nota · última: 26 Aug 2020
The article explains the State Pattern as a way to encapsulate an object's internal state, model finite state machines, and keep transition logic out of the context class, using a toaster implemented in TypeScript.