“JavaScript Design Patterns 20 Patterns for Advancing Your JavaScript Skills” S:1 E:26 The State Design Pattern

Mins :
Year Released:
Lang:
S:1 E:26 The State Design Pattern An application doesn’t need to always be aware of its state. Awareness tends to add more complexity to an application (such as multiple conditions). By extracting the different states into separate implementations, all that is left for the application to do is update its state to change its functionality.