Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jjiayyingtt] iP #325

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open

Conversation

jjiayyingtt
Copy link

@jjiayyingtt jjiayyingtt commented Jan 28, 2023

Duke Project

DukePro frees your mind of having to remember things you need to do. It's,

  • text-based
  • easy to learn
  • FAST SUPER FAST to use
    All you need to do is,
  1. download it from [here] [(https://nus-cs2103-Ay2223s2.github.io/website/schedule/week4/project.html)].
  2. double-click it.
    3.add your tasks.
  3. let it manage your tasks for you 馃槈
    And it is FREE!

Features:

  • Managing tasks
  • Managing deadlines
  • Reminders (coming soon)

@jjiayyingtt jjiayyingtt changed the title jjiayyingtt iP [jjiayyingtt] iP Jan 28, 2023
Copy link

@c0j0s c0j0s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall looking good, but you might want to standardise your code style to comply with the standards.

Comment on lines 99 to 103
/*} else if (dataArr[0].equals("deadline ")) {
operationHandler("deadline" + dataArr[2] + "/by" + dataArr[3]);
} else if (dataArr[0].equals("event ")) {
operationHandler("event" + dataArr[2] + "/from" + dataArr[3] + "/to" + dataArr[4]);
}*/
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you might want to remove commented codes before committing to make the PR neater.

}

private static String[] stringProcessor(boolean isDeadline, String s){ // isDeadline = false meaning isEvent
if (isDeadline){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have noticed several areas in your code without a space after if/for/method declarations. You might want to be careful as it will be painful when you need to resolve check style issues later on.

Comment on lines 11 to 13
System.out.print("[D]");
super.printTask();
System.out.println("(by: " + date + ")");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, OOP from the start. But you might want to extract IO dependencies from your model classes, it will be easier when you decide to change your ui layer in the future.

Comment on lines 9 to 14
class DukeException extends Exception {

public DukeException(String errorMessage){
super(errorMessage);
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be in its own file?

Copy link

@pkpaing pkpaing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, keep it up!

err.printStackTrace();
}
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is well indented and very readable!

Comment on lines 20 to 35
private static void startUp() {
String name = "todo bot";
System.out.println("Hello from " + name);
System.out.println("------------------------------------");
System.out.println("I can help you take care of your daily todos :)");
System.out.println("There are 3 types of tasks I can handle.");
System.out.println("------------------------------------");
System.out.println("1. normal todo, format: ");
System.out.println(" todo task");
System.out.println("2. deadline, format: ");
System.out.println(" deadline task /by yyyy-mm-dd");
System.out.println("3. event, format: ");
System.out.println(" event task /from yyyy-mm-dd /to yyyy-mm-dd");
System.out.println("------------------------------------");

}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very well formatted print statements, easy to read!

Assertions are added to operationHandler, when tasks are added to
the list.
Previous commit version's did not get tasks that were saved and
it did not save tasks that were obtained from chatbot.

Link the data file to the chatbot
Provide a way to easily snooze/postpone/reschedule tasks.
moved function within operationHandler out to addTask and Snooze
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.

None yet

3 participants