What is the Command pattern good for?

The command pattern should be used when: You need a command to have a life span independent of the original request, or if you want to queue, specify and execute requests at different times . You need undo/redo operations. The command’s execution can be stored for reversing its effects.

Sizin İçin Seçtik  What are observers in JavaScript?

Leave a Reply

Your email address will not be published. Required fields are marked *