DEV Community

Cover image for Combining the Command Pattern with State Pattern in JavaScript

Combining the Command Pattern with State Pattern in JavaScript

jsmanifest on November 24, 2022

JavaScript is a popular language known for its flexibility. It's thanks to this that makes patterns like the command pattern easier to implement in...
Collapse
 
jdgamble555 profile image
Jonathan Gamble

probably need an unsubscribe for good memory management

Collapse
 
elihood profile image
EliHood

These design pattern posts are very very valuable. Especially given that most design pattern guides you will see on the web will be written as a class instead of a function.

Definitely on the look out for more design patterns written in a functional programming approach from you.

Collapse
 
pasupuletics profile image
Chandrasekhar Pasupuleti

For me command pattern is same as event driven.