Questions tagged [command-pattern]
The command-pattern tag has no summary.
12 questions
0
votes
3
answers
589
views
Decoupling command and receiver in command pattern
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 ...
3
votes
1
answer
244
views
Command pattern and object model integration
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, ...
0
votes
0
answers
54
views
Designing a proof mechanism
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 ...
0
votes
2
answers
2k
views
Combining synchronous and asynchronous commands when using the command pattern
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 ...
0
votes
1
answer
61
views
How to handle the getting of information from Model
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 ...
0
votes
3
answers
681
views
Intent of Command pattern?
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 ...