Skip to content

[Tin Jingyao] iP - #507

Open
tin-jy wants to merge 45 commits into
nus-cs2103-AY2223S1:masterfrom
tin-jy:master
Open

[Tin Jingyao] iP#507
tin-jy wants to merge 45 commits into
nus-cs2103-AY2223S1:masterfrom
tin-jy:master

Conversation

@tin-jy

@tin-jy tin-jy commented Aug 29, 2022

Copy link
Copy Markdown

DukePro

“Your mind is for having ideas, not holding them.” – David Allen (source)

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.
  2. double-click it.
  3. add your tasks.
  4. let it manage your tasks for you 😉

And it is FREE!

Features:

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

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);
    }
}

@edricyeo edricyeo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Generally good effort!
I like the clear naming of classes, variables and methods.
I think generally you could split your code into different classes, and include JavaDocs for your classes and methods!

Comment thread src/main/java/Duke.java Outdated
import java.util.Locale;
import java.util.Scanner;

public class Duke {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Perhaps apply OOP to split the Duke class into different smaller classes?

Comment thread src/main/java/Duke.java Outdated

private static final ArrayList<Task> LIST_OF_THINGS = new ArrayList<>();

private abstract static class Task {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe you could create Task as a separate class, instead of nesting it in the Duke class.

Comment thread src/main/java/Duke.java Outdated
}
}

private static class EventTask extends Task {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I like how you named the different Tasks clearly! 👍

Comment thread src/main/java/Duke.java Outdated
return false;
}
try {
Integer.parseInt(str.substring(7));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Perhaps you could consider using str.split(" ") rather than str.substring(7). May improve reusability of code instead of having to change the number according to the length of the command?

Comment thread src/main/java/Duke.java Outdated

public class Duke {

private static final ArrayList<Task> LIST_OF_THINGS = new ArrayList<>();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe you could consider extracting this out as a separate TaskList class, which would handle adding tasks, etc.

@domoberzin domoberzin left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Coding standard is generally adhered to w.r.t naming, but could extract out the different classes, as well as add JavaDocs. :)

Comment thread src/main/java/Duke.java Outdated
import java.util.Locale;
import java.util.Scanner;

public class Duke {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could split the class into various classes, i.e. TaskList, Event, Deadline, instead of putting them into one class

Comment thread src/main/java/Duke.java Outdated
private static final ArrayList<Task> LIST_OF_THINGS = new ArrayList<>();

private abstract static class Task {
private final String task_name;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Should be camelcase formatting for variables

Comment thread src/main/java/Duke.java Outdated
import java.util.Locale;
import java.util.Scanner;

public class Duke {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could also add JavaDocs for documentation purposes

Comment thread src/main/java/duke/Command.java Outdated
Comment on lines +3 to +5
public class Command {

}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I am curious why is this empty?

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