-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redesign of the nurse command #183
Conversation
✅ Deploy Preview for coffee-docs canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are just typos
The skeleton is very nice
I can work on this as well
//! >The basic idea behind the Strategy pattern is that, given an | ||
//! > algorithm solving a particular problem, we define only | ||
//! > the skeleton of the algorithm at an abstract level, and we | ||
//! > separate the specific algorithm’s implementation into | ||
//! > different parts. | ||
//! > | ||
//! > In this way, a client using the algorithm may choose | ||
//! > a specific implementation, while the general algorithm | ||
//! > workflow remains the same. In other words, the abstract | ||
//! > specification of the class does not depend on the specific | ||
//! > implementation of the derived class, but specific implementation | ||
//! > must adhere to the abstract specification. | ||
//! | ||
//! So in this specific case the nurse command may need | ||
//! different kind of recovery algorithm, so we should | ||
//! be able to choose the algorithm at runtime. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the explanation
Yeah I will leave this to you now, let me fix the review and we merge it as a draft |
0be7404
to
44090d1
Compare
This commit introduce a basic architecture to run the nurse command by using two design pattern, that are the chain of responsability for choosing what kind of strategy apply, and a strategy pattern to abstract the algorithm under a basic view. Signed-off-by: Vincenzo Palazzo <[email protected]> feat(core): add nurse chain of responsability to select the recovery algorithm Signed-off-by: Vincenzo Palazzo <[email protected]>
44090d1
to
bad8427
Compare
Merging this and leaving it to play with to @tareknaser360 |
Please review each commit by review also the comments of the module.