-
Notifications
You must be signed in to change notification settings - Fork 364
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
[liujiayue314] iP #233
base: master
Are you sure you want to change the base?
[liujiayue314] iP #233
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, aside from missing JavaDocs and some coding violations, the code can be easily understood, variables and methods are well named
src/main/java/Main/Duke.java
Outdated
@@ -0,0 +1,42 @@ | |||
package Main; |
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 package name should be all lower case.
src/main/java/Task/Task.java
Outdated
|
||
|
||
public abstract String toText(); | ||
abstract public LocalDate getDate(); |
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.
abstract public LocalDate getDate(); | |
public abstract LocalDate getDate(); |
import Task.Task; | ||
|
||
public class DeadlineCommand extends Command { | ||
String description; |
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 having a private access modifiers for attributes would be better?
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.
Generally, your code is readable and formatted well other than a few minor details. Nice work!
src/main/java/main/Ui.java
Outdated
|
||
public class Ui { | ||
|
||
private static final String indentation = " "; |
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 these constant names can be in all caps?
@Override | ||
public String toString() { | ||
return "[E]" + super.toString() + " (from: " | ||
+ formatOfDate.format(startDate) + " to: " + formatOfDate.format(endDate) + ")"; |
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! This looks like the right indentation for this scenario. Looks like there are no line length issues with your code and you broke your line before an operator.
import task.Task; | ||
|
||
public class MarkCommand extends Command { | ||
int index; |
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 this class variable should be declared private?
|
||
public class UnmarkCommand extends Command{ | ||
|
||
int index; |
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.
Similar to the comment in the MarkCommand class, do consider making this variable private.
Apply GFMD in description
…than starting date of event Currently, user can add an event with any ending and starting date. Users should be informed of their mistake and be prompted to change. Let's check for wrong dates and raise an exception when the mistake is detected.
Add event task: inform users when ending date of an event is earlier …
Branch a code quality
Previously, users have to manually add task. Manually adding task can be tedious and users might be forgetful in adding the task. Recurring command is more user-friendly because users can leave the task to the task planner. Let's, * update input and output to read recurring command * update the task planner to mark task as not done when the task refreshes.
Duke task planner
DukePro is a task planner that is free, downloadable it from here!.
Programmers can also use it in intelliJ, by running
main
method. 🧑💻It frees your mind of having to remember things you need to do. It's
EasySuper Easy to useIt can
Currently, the features are