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

[liujiayue314] iP #233

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

Conversation

liujiayue314
Copy link

@liujiayue314 liujiayue314 commented Jan 25, 2023

Duke task planner

"He who fails to plan is planning to fail" -- Winston Churchill
(Source)

DukePro is a task planner that is free, downloadable it from here!.
Programmers can also use it in intelliJ, by running main method. 🧑‍💻

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

  • Fast to install
  • Suitable for fast typers
  • Easy Super Easy to use

It can

  • Manage task
  • Manage deadline
  • Set reminders (coming soon!)

Currently, the features are

  1. Add/Delete task
  2. Mark/Unmark task
  3. Search task by keywords
public class Main {
    public static void main(String[] args) {
        Application.launch(MainApp.class, args);
    }
}

Copy link

@jiexuanc jiexuanc left a comment

Choose a reason for hiding this comment

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

Overall, aside from missing JavaDocs and some coding violations, the code can be easily understood, variables and methods are well named

@@ -0,0 +1,42 @@
package Main;
Copy link

Choose a reason for hiding this comment

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

I think package name should be all lower case.



public abstract String toText();
abstract public LocalDate getDate();
Copy link

Choose a reason for hiding this comment

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

Suggested change
abstract public LocalDate getDate();
public abstract LocalDate getDate();

import Task.Task;

public class DeadlineCommand extends Command {
String description;
Copy link

Choose a reason for hiding this comment

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

Maybe having a private access modifiers for attributes would be better?

Copy link

@cjyothika cjyothika left a comment

Choose a reason for hiding this comment

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

Generally, your code is readable and formatted well other than a few minor details. Nice work!


public class Ui {

private static final String indentation = " ";

Choose a reason for hiding this comment

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

Perhaps these constant names can be in all caps?

@Override
public String toString() {
return "[E]" + super.toString() + " (from: "
+ formatOfDate.format(startDate) + " to: " + formatOfDate.format(endDate) + ")";

Choose a reason for hiding this comment

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

Good job! This looks like the right indentation for this scenario. Looks like there are no line length issues with your code and you broke your line before an operator.

import task.Task;

public class MarkCommand extends Command {
int index;

Choose a reason for hiding this comment

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

Perhaps this class variable should be declared private?


public class UnmarkCommand extends Command{

int index;

Choose a reason for hiding this comment

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

Similar to the comment in the MarkCommand class, do consider making this variable private.

liujiayue314 and others added 27 commits February 7, 2023 02:57
…than starting date of event

Currently, user can add an event with any ending and starting date.

Users should be informed of their mistake and be prompted to change.

Let's check for wrong dates and raise an exception when the mistake is detected.
Add event task: inform users when ending date of an event is earlier …
Previously, users have to manually add task.

Manually adding task can be tedious and users might be forgetful in
adding the task. Recurring command is more user-friendly because users
can leave the task to the task planner.

Let's,
* update input and output to read recurring command
* update the task planner to mark task as not done when the task
refreshes.
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