Skip to content

Conversation

LolfoollorS
Copy link

@LolfoollorS LolfoollorS commented Aug 31, 2022

Clevernotbot

CleverNotBotLogo

“Humans Need Not Apply.” – CPG Grey (source)

Trying to relive the old days? Well look no further. Try Clevernotbot! It's

  • has a task tracking capability
  • text-based
  • easy to learn

Did I also mention that it is FREE OF CHARGE? All you need to do now is,

  1. download it from here.
  2. double-click it.
  3. add your tasks.
  4. let it manage your tasks for you 😉

Features:

  • Managing tasks
  • Managing deadlines
  • Reminders (pending)
    If you Java programmer, you can use it to practice Java too. Here's the main method:
public class Main {
    public static void main(String[] args) {
        Application.launch(MainApp.class, args);
    }
}

damithc and others added 22 commits July 31, 2022 17:20
# Conflicts:
#	src/main/java/Deadline.java
Update Deadline.java
Update all functions to command.
Update Handler to Parser
Update UITextbox to UI
# 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
Copy link

@ShawnChew ShawnChew left a 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;

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() {

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.

Comment on lines 21 to 23
* @param tasks The task list used to store all tasks.
* @param textBox UI for the textbox.
* @param storage The data where it is stored.

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.

Comment on lines 43 to 45
* Toggles the completion of event task.
*
* @return A toggled version of event. (Completed = true -> Completed = false)

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

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.

Comment on lines 38 to 42
/**
* Toggles the completion of todo task.
*
* @return A toggled version of todo. (Completed = true -> Completed = false)
*/

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.

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;

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;

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants