-
Notifications
You must be signed in to change notification settings - Fork 362
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
[Cheng Deren] iP #367
base: master
Are you sure you want to change the base?
[Cheng Deren] iP #367
Conversation
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 LGTM
src/main/java/Wessy.java
Outdated
@@ -89,6 +92,42 @@ static String[] parse(String description, CmdType type) throws | |||
return new String[] {}; | |||
} | |||
|
|||
static LocalDateTime parseDateTime(String str) { |
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.
Might want to store this parser into a seperate class
src/main/java/Wessy.java
Outdated
System.out.println(" | " + str.substring(0, 64) + " |"); | ||
int remainingLength = length - 64; | ||
int leftover = remainingLength % 62; | ||
int n = (int) Math.floor(remainingLength/62); |
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.
Might want to split this function into several to make it easier to edit in the future.
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.
Good job for following the coding standard closely! Perhaps can implement a Parser class to reduce the amount of contents in the Wessy class.
src/main/java/Deadline.java
Outdated
@@ -0,0 +1,32 @@ | |||
import java.time.LocalDateTime; | |||
|
|||
public class Deadline extends Task { |
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.
Perhaps can put this class into a package (like package duke), as other developers could better understand the code base when all the classes have been grouped in packages
src/main/java/Wessy.java
Outdated
@@ -0,0 +1,397 @@ | |||
import Exceptions.CommandNotFoundException; |
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.
Great job on importing the classes explicitly, and ordered them in a logical way.
…) methods in Parser
These classes are: Parser UserInputChecker CmdType Task ToDo Deadline Event WessyException CommandNotFoundException MissingSpacingException TimeSpecifierException UnspecifiedTimeException EmptyListException InvalidIntegerException NotAnIntegerException NotPositiveIntegerException MissingInputException TooManyInputException
Use JavaFX technology to implement the GUI.
Refactor the whole code base by extracting out the closely related code as the following components, with their respective function * Parser -- Process user input. * Storage -- Retrieve from existing storage and save as a new file after every update. * Ui -- Handle I/O. * UserInputChecker -- Check and throw exceptions while checking for correct formatting in the user input. Rethink and recategorise the exceptions by merging those that seem closely related. Add TimeSpecifierException on tp of UnspecifiedTimeException to differentiate between the 2 exceptions. Create more packages. Rearrange the code by placing the relevant classes into their respective packages.
Use assert feature (not JUnit assertions) to document importaant assumptions that should hold at various points in the code.
Use the Streams feature of Java in my code, if applicable.
Use Streams
Use Assertions
Improve code quality
Implement the following 2 features: * B-DoAfterTasks * B-FixedDurationTasks
Wessy, your friendly neighbourhood personal assistant
What I cannot do:
What I can do:
I can even print
hello world
, just like you.What you should do everyday:
BEND DOWN TO ME, YOU LOWLY HUMAN