Skip to content

Glossary: Software Design Patterns

Command

Also written: command pattern

A pattern that turns an action into an object that knows how to do it (`run`) and reverse it (`undo`). The cart's Undo button is built from it.

Where the book teaches it

Related terms

Undo stack