-
Notifications
You must be signed in to change notification settings - Fork 437
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
[Chiam Yun Qing] iP #22
base: master
Are you sure you want to change the base?
Conversation
…s easier, Add storage class for handling saving and loading of data
* branch-Level-7: Create new data folder to store duke.txt Add functionality for saving task and loading task from hard disk Update string format of task classes to make handling of loading tasks easier, Add storage class for handling saving and loading of data
* branch-Level-8: Add command to enable printing of tasks occurring on a specific date Add feature to process date and time for events and deadlines # Conflicts: # src/main/java/Deadline.java # src/main/java/Duke.java # src/main/java/Event.java
* branch-A-Level-10: Complete functionality for hi and bye messages
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.
Overall it looks good! Just minor things like the missing spacing. Interesting use of Optional too!
+ "I assume that you are as forgetful as Nobita. Remember to bribe me with loads of Dorayaki too!"; | ||
return intro; | ||
} | ||
|
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.
Would it be better to name this method as "showWelcomeMessage"?
String bye = "Goodbye, I need to find my sister now! >_<"; | ||
return bye; | ||
} | ||
|
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.
Would it be better if "showByeMessage" is used instead?
listOfTask.add(new Todo("study")); | ||
assertEquals(2, new TaskList(listOfTask).getNumTasks()); | ||
} | ||
|
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.
Maybe add a spacing here: "testGetNumTask() {" ? Also, would "listOfTasks" look better?
assertEquals(listOfTask, new TaskList(listOfTask).getSameDateTasks("2020-08-08")); | ||
assertEquals(new ArrayList<Task>(), new TaskList(listOfTask).getSameDateTasks("2020-08-09")); | ||
} | ||
|
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.
I think it's the same as above, just missing 1 spacing between ")" and "{".
assertEquals(listOfTask, new TaskList(new ArrayList<Task>(listOfTask)).getAllTasks()); | ||
assertEquals(new ArrayList<Task>(), new TaskList().getAllTasks()); | ||
} | ||
} |
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.
Everything is good! Maybe just the missing spacing like above.
Most issues arise from user mistakes and have already been handled by exceptions
Add assertions to make sure objects are present at those states
Improve code quality (e.g. comply with SLAP, prominent happy path)
Use streams in TaskList
No description provided.