Skip to main content

Questions tagged [command-pattern]

Filter by
Sorted by
Tagged with
0 votes
3 answers
589 views

I'm writing a simulation of a car that can receive commands and act on them and I'm trying to implement it using the command pattern. class Car { move() { console.log('move'); } } interface ...
Epsilon's user avatar
  • 109
3 votes
1 answer
244 views

In a document editor application, is it better to implement the command pattern as a layer on top of the object model, or to deeply integrate it into the object model? If commands are a layer on top, ...
Trillian's user avatar
  • 141
0 votes
0 answers
54 views

DataModel contains a Proof that contains all the information of its integrity along with the method with which the Proof should be verified. In this case I designed a JWS type of proof that can be ...
Antonio Santoro's user avatar
0 votes
2 answers
2k views

Let's say I'm building a simple console app which has three commands: Create category. Download recipe from API to category. Display all recipes in a category. Assuming the app will grow, I use the ...
Lucas's user avatar
  • 139
0 votes
1 answer
61 views

I'm doing a Java software engineering team project in school and my team has decided on a Finance Tracker application, which contains the main components of Expense, Budget, Statistics, Suggestions ...
Prashin Jeevaganth's user avatar
0 votes
3 answers
681 views

In Elements of Reusable Object Oriented software by Erich Gamma, the intent for Command design pattern says: Encapsulate a request as an object, thereby letting you parameterize clients with ...
Navjot Singh's user avatar