Open k-walter opened 4 years ago
There are several operation that involves Storage
class but does not involve CheatSheetList
class, such as the Setting
and the Favorite Command
.
Team chose [response.Rejected
]
Reason for disagreement: In which case, it would be better if CheatSheetList
, Setting
and Favorite Command
individually manage their Storage
instances to reduce coupling.
Storage
, rather than having UI
make the decision.
As titled, it should not be the responsibility of UI to handle everything. For example, when
CommandExecutor
calls a method withinCheatSheetList
to edit an existing cheat sheet,Storage
methods should be invoked withinCheatSheetList
to update if necessary.