-
Notifications
You must be signed in to change notification settings - Fork 461
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
[Lim Zhan Feng] iP #514
base: master
Are you sure you want to change the base?
[Lim Zhan Feng] iP #514
Conversation
# Conflicts: # src/main/java/Deadline.java
Update Deadline.java
Update all functions to command. Update Handler to Parser Update UITextbox to UI
This reverts commit 189448e.
# Conflicts: # src/main/java/clevernotbot/AddDeadLineCommand.java # src/main/java/clevernotbot/AddEventCommand.java # src/main/java/clevernotbot/AddToDoCommand.java # src/main/java/clevernotbot/ByeCommand.java # src/main/java/clevernotbot/CleverNotBotException.java # src/main/java/clevernotbot/Deadline.java # src/main/java/clevernotbot/DefaultCommand.java # src/main/java/clevernotbot/DeleteCommand.java # src/main/java/clevernotbot/Event.java # src/main/java/clevernotbot/GreetCommand.java # src/main/java/clevernotbot/ListCommand.java # src/main/java/clevernotbot/MarkCommand.java # src/main/java/clevernotbot/Parser.java # src/main/java/clevernotbot/Storage.java # src/main/java/clevernotbot/Task.java # src/main/java/clevernotbot/TaskList.java # src/main/java/clevernotbot/ToDo.java # src/main/java/clevernotbot/UI.java # src/main/java/clevernotbot/UnmarkCommand.java
# Conflicts: # src/main/java/clevernotbot/TaskList.java
Update UnmarkCommand.java
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 I think you followed the Java Coding Standard closely. 👍
*/ | ||
public abstract class Command { | ||
private String commandName; | ||
private boolean exit; |
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 you could rename the variable to make it sound like a boolean.
* @return A toggled version of deadline. (Completed = true -> Completed = false) | ||
*/ | ||
@Override | ||
public Task toggleCompleted() { |
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.
Name of method sounds a little misleading, perhaps you could name it as toggleCompletionStatus.
* @param tasks The task list used to store all tasks. | ||
* @param textBox UI for the textbox. | ||
* @param storage The data where it is stored. |
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 like that you aligned the descriptions for the params to make it look neater.
* Toggles the completion of event task. | ||
* | ||
* @return A toggled version of event. (Completed = true -> Completed = false) |
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 you could write the content in the parenthesis, in the second sentence of the description instead of on the @return line.
System.out.println(file.getAbsolutePath()); | ||
System.out.println(String.join(",",content)); | ||
*/ | ||
//"1".equals(content[1]) is to convert it to boolean |
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 like how you commented on what the code is doing.
src/main/java/clevernotbot/ToDo.java
Outdated
/** | ||
* Toggles the completion of todo task. | ||
* | ||
* @return A toggled version of todo. (Completed = true -> Completed = false) | ||
*/ |
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.
You can omit header comments for overriding methods (provided the parent method's Javadoc applies exactly as is to the overridden method).
* Constructor for the AddEventCommand. | ||
* | ||
* @param commandName Description of Command. | ||
* @param exit Checking if program intends to exit. |
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 use of alignment to keep description on one side and parameters on the other
* a task with a time range e.g., <code>Aug 6th 2-4pm</code> | ||
*/ | ||
public class Event extends Task { | ||
private String at; |
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.
possible to make this private final?
*/ | ||
public class TaskList { | ||
private ArrayList<Task> tasks; | ||
private int size; |
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.
likewise, possible to make it private final? Maybe create a new TaskList object with each function call
Add HelpCommand.java Adhere to Coding Standards Change to assist people that requires help. Add HelpCommand if user needs help.
Update Sprite for bot.
Clevernotbot
Trying to relive the old days? Well look no further. Try Clevernotbot! It's
Did I also mention that it is FREE OF CHARGE? All you need to do now is,
Features:
Reminders(pending)If you Java programmer, you can use it to practice Java too. Here's the
main
method: