Reading time: 15 minutes
The command pattern is a behavioral-based design pattern that encapsulates a request/action in an object without knowing the internal operations.
The idea is to create an interface of commands as objects that can be called while being able to decouple the object that performs the action and the object that invokes the action. We have explored it in Java.
Problem
Take for instance, the typical programs we wrote when we coded our first programs. Often times we would use a...
Published on June 22, 2020 11:04