Skip to content
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

Improve code quality #2

Merged
merged 1 commit into from
Sep 10, 2022
Merged

Improve code quality #2

merged 1 commit into from
Sep 10, 2022

Conversation

nqt230
Copy link
Owner

@nqt230 nqt230 commented Sep 10, 2022

  • Refactor application launch process.
    • Move Launcher.main method to Duke.main.
    • Remove Launcher class since it is no longer used.
  • Add constant TASK_TYPE_CHARACTER to ToDo, Deadline and Event. This is to centralize the information of which character refers to which type of task e.g. T associated to ToDo.
    • Modify toString and toSaveFormatString methods in all subclasses of Task to make use of this constant.
    • Modify Storage class to check against this constant when attempting to load in tasks from file.
  • Move print statements to Duke's addToResponse method since all text to be displayed goes through that method.

* Refactor application launch process.
    - Move Launcher.main method to Duke.main.
    - Remove Launcher class since it is no longer used.
* Add constant TASK_TYPE_CHARACTER to ToDo, Deadline and Event. This is to centralize the information of which character refers to which type of task e.g. T associated to ToDo.
    - Modify toString and toSaveFormatString methods in all subclasses of Task to make use of this constant.
    - Modify Storage class to check against this constant when attempting to load in tasks from file.
* Move print statements to Duke's addToResponse method since all text to be displayed goes through that method.
@nqt230 nqt230 merged commit cc9c6aa into master Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant