[Bryan Lim Jing Xiang] iP - #484
Open
bryanljx wants to merge 82 commits into
Open
Conversation
zzthian
reviewed
Aug 31, 2022
zzthian
left a comment
There was a problem hiding this comment.
Overall very well written to comply with the Java Coding standard. Great use of access modifiers and naming was very clear. Great job! 😀
| */ | ||
| public abstract class Task { | ||
| private final String taskItem; | ||
| private boolean isMarked; |
There was a problem hiding this comment.
Good naming of boolean variables, makes it easier to follow the code 👍
| * @return DeadlineDateTime object that stores the Date and Time | ||
| * @throws DukeException If the storedDateTime cannot be parsed | ||
| */ | ||
| public static DeadlineDateTime parseDateFromStorage(String storedDateTime) throws DukeException { |
There was a problem hiding this comment.
Great naming of methods, clear usage of verbs 😄
czhongwei
reviewed
Sep 3, 2022
| public static String formatLinesIntoParagraph(String... lines) { | ||
| String res = ""; | ||
| for (String line : lines) { | ||
| res += formatLine(line); |
There was a problem hiding this comment.
Since you're concatenating Strings here, maybe you could consider using the StringBuilder object to optimise your code?
czhongwei
reviewed
Sep 3, 2022
czhongwei
left a comment
There was a problem hiding this comment.
Good work! I couldn't really find any coding standard violations
MinHeinA
reviewed
Sep 4, 2022
Date format for event datetime is `yyyy-mm-dd hh:mm:ss hh:mm:ss`, not `yyyy-mm hh:mm:ss hh:mm:ss hh:mm:ss`. This has been rectified in this commit.
Added validations after validating arguments/format for Todo arguments, EventDateTime, and DeadlineDateTime.
There were a few cases where String concatenation was used within a loop instead of StringBuilder, which is not ideal due to performance reasons. This was fixed in this commit.
Add Assertions
Improve code quality
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Duke
Duke frees your mind of having to remember things you need to do. It's,
FASTSUPER FAST to useAll you need to do is,
And it is FREE!
Features:
If you Java programmer, you can use it to practice Java too. Here's the
mainmethod:Future improvements
Work in progress: