[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
ShawnChew
left a comment
There was a problem hiding this comment.
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.
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.
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.
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.
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.
I like how you commented on what the code is doing.
| /** | ||
| * Toggles the completion of todo task. | ||
| * | ||
| * @return A toggled version of todo. (Completed = true -> Completed = false) | ||
| */ |
There was a problem hiding this comment.
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.
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.
possible to make this private final?
| */ | ||
| public class TaskList { | ||
| private ArrayList<Task> tasks; | ||
| private int size; |
There was a problem hiding this comment.
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
mainmethod: