Tags: Potaeeee/ip
Tags
Merge pull request JuliaPoo#10 from JuliaPoo/branch-A-CodeQuality Refactor: Seperated Ui into Command interfaces
Refactor: Minor refactor and added assertions Due to not typing the different commands, length of arguments in UI class is assumed correct, which assumes Parser is implemented correctly. Added assertions in UI class to ensure correctness.
Refactor: Seperated Ui into Command interfaces Ui class contained all functionality of Commands, which is messy since Ui is also modifying the TaskList. Handling of commands is refactored into private Command classes abstracted by CommandFactory. This not only improves SLAP, but also removes the length checks present in Ui previously, due to better typing.
Refactor: Minor refactor and added assertions Due to not typing the different commands, length of arguments in UI class is assumed correct, which assumes Parser is implemented correctly. Added assertions in UI class to ensure correctness.
PreviousNext