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

[zuohui48] ip #284

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

[zuohui48] ip #284

wants to merge 52 commits into from

Conversation

zuohui48
Copy link

@zuohui48 zuohui48 commented Jan 26, 2023

MrDuke

"All models are wrong, but some are useful." -George Box

MrDuke helps you to micromanage all your tasks. It's

  • easy to use
  • text-based
  • 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!

You can:

  • Manage tasks
  • Manage deadlines
  • Set reminders

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

@shaowi shaowi 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 merge!

Comment on lines 10 to 39
public boolean checkTodo(String input) {

return input.split(" ")[0].equals("todo");
}
public boolean checkEvent(String input) {
return input.split(" ")[0].equals("Event");
}
public boolean checkDeadline(String input) {
return input.split(" ")[0].equals("deadline");
}

public boolean checkTask(String input) {
String cmd = input.split(" ")[0];
return cmd.equals("deadline") || cmd.equals("todo") || cmd.equals("event");
}
public boolean checkMark(String input) {
return input.split(" ")[0].equals("mark");
}
public boolean checkUnmark(String input) {
return input.split(" ")[0].equals("unmark");
}
public boolean checkList(String input) {
return input.split(" ")[0].equals("list");
}
public boolean checkBye(String input) {
return input.split(" ")[0].equals("bye");
}
public boolean checkDelete(String input) {
return input.split(" ")[0].equals("delete");
}
Copy link

Choose a reason for hiding this comment

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

Boolean variables/methods should be named to sound like booleans.

import java.io.File;
import java.io.IOException;
import java.io.FileWriter;
import java.io.*;
Copy link

Choose a reason for hiding this comment

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

Imported classes should always be listed explicitly.

import java.util.Arrays;
import java.util.stream.Stream;
public class Parser {
private static String[] VALID_COMMANDS = {"mark", "unmark", "list", "delete", "bye", "todo", "event", "deadline"};
Copy link

Choose a reason for hiding this comment

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

final keyword can be specified for constants

@@ -0,0 +1,136 @@
import java.util.ArrayList;
public class TaskList {
private ArrayList<Task> list;
Copy link

Choose a reason for hiding this comment

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

Possible to be more clear of what list is this ? :)

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

2 participants