Design patterns are useful tools for us as developers, because they give us the terminology to discuss recurring ideas and patterns that show up in our code. Unfortunately, they’re also often explained in theoretical, object-oriented terms, and as a result, they can be difficult to apply in our daily programming practice unless we’ve seen them before. I want to try and unpack the command pattern, how we ended up using it in a recent project of ours, and how it might be implemented in JavaScript.