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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bryanongjx] iP #379

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

Conversation

bryanongjx
Copy link

@bryanongjx bryanongjx commented Feb 1, 2023

Tick Pro

"For every minute spent organising, an hour is earned" - Tick from Brawl Stars

"Tick OP" - every salty brawl stars player

This is an image

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

  • text-based
  • easy to learn
  • FAST SUPER FAST to learn

Setting it up

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

and it's FREE!! 🤑

Features:

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

If you are a 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);
    }
}

Copy link

@rmj1405 rmj1405 left a comment

Choose a reason for hiding this comment

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

Overall no major code style violations. After tidying up the long lines, you are good to go!

@@ -1,10 +1,83 @@
import java.util.*;
Copy link

Choose a reason for hiding this comment

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

According to the coding standard, you may want to list all imports explicitly as they make the class easier to read 😀

System.out.println("Hello! I'm Duke\n");
System.out.println("What can I do for you?\n");

List<Task> lst = new ArrayList<>();
Copy link

Choose a reason for hiding this comment

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

Nice naming, easy to understand in subsequent code 👍

String details = actionAndDetails[1];
Todo newTodo = new Todo(details);
lst.add(newTodo);
System.out.println("Got it. I've added this task:" + '\n' + newTodo + '\n' + "Now you have " + lst.size() + " tasks in the list");
Copy link

Choose a reason for hiding this comment

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

This line may be exceeding the 120 character limit, perhaps you would like to double check!

lst.remove(taskNum - 1);
System.out.println("Noted. I've removed this task:" + '\n' + currTask + '\n' + "Now you have " + lst.size() + " tasks in the list");
}else {
throw new DukeException("OOPS!!! I'm sorry, but I don't know what that means :-(");
Copy link

Choose a reason for hiding this comment

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

Cute emoji 😄

Copy link

@antonlee59 antonlee59 left a comment

Choose a reason for hiding this comment

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

Overall, LGTM. Good job on completing up to Level 6. All the best for the upcoming weeks.

Comment on lines 3 to 5
String From;
String To;
public Event(String description, String From, String To) {

Choose a reason for hiding this comment

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

Perhaps, the naming of the fields can follow the norm of the 'description' field with small letters instead of capitalised ones. I think as long as you are consistent, it should be fine

Comment on lines 21 to 41
if (action.equals("bye")) {
System.out.println("Bye. Hope to see you again soon!");
return;
} else if (action.equals("list")) { // list
System.out.println("Here are the tasks in your list:");
for (int i = 1; i <= lst.size(); i++) {
System.out.println(i + ". " + lst.get(i - 1));
}
} else if (action.equals("mark")) {
String details = inputArr[1];
int taskNum = Integer.parseInt(details);
Task currTask = lst.get(taskNum - 1);
currTask.mark();
System.out.println("Nice! I've marked this task as done" + '\n' + currTask);
} else if (action.equals("unmark")) {
String details = inputArr[1];
int taskNum = Integer.parseInt(details);
Task currTask = lst.get(taskNum - 1);
currTask.unMark();
System.out.println("Nice! I've marked this task as not done yet" + '\n' + currTask);
} else if (action.equals("todo")) {

Choose a reason for hiding this comment

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

Perhaps, using a switch-case statement would make it slightly more readable.

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.

4 participants