Polski

Behavioral patterns

Command

Turns a request into an object you can queue, log and undo.

Article

Command: a request wrapped in an object

The Command pattern through a waiter's terminal in a pierogi place: every action on the ticket is an object with execute and undo, so it can be undone, redone, kept in a history and sent to a queue. Code in five languages.

Challenges

Around the topic

In this group: Behavioral patterns