1.0.0 • Published 3 years ago
@dommandy/mealy v1.0.0
mealy
state machines made in typescript
Design Patterns
The state, proxy, and observer patterns are three of twenty-three design patterns documented by the gang of four
State Pattern
allows an object to alter its behavior when its internal state changes. This pattern is close to the concept of finite-state machines
Proxy Pattern
In short, a proxy is a wrapper or agent object that is being called by the client to access the real serving object behind the scenes. Use of the proxy can simply be forwarding to the real object or can provide additional logic
Observer Pattern
an object, named the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods
1.0.0
3 years ago