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

[Ryan Guai] iP #34

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

Conversation

ryanguai
Copy link

@ryanguai ryanguai commented Aug 19, 2022

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 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

@maryjess maryjess left a comment

Choose a reason for hiding this comment

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

Great work on your code so far! 👍

taskList.add(task);
}

public ArrayList<Task> searchMatches(String keyword) {

Choose a reason for hiding this comment

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

Perhaps method name of searchTasks or searchMatchingKeyword is better?


public ArrayList<Task> searchMatches(String keyword) {
ArrayList<Task> matchingList = new ArrayList<>();
for (Task task: taskList) {

Choose a reason for hiding this comment

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

Should we add a spacebar here, after task?

String dukeResponse = "";
try {
switch (response) {
case "find": {

Choose a reason for hiding this comment

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

FileWriter myWriter = new FileWriter(this.filePath);
StringBuilder output = new StringBuilder();
ArrayList<Task> tasks = taskList.getTasks();
for (Task task:tasks) {

Choose a reason for hiding this comment

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

Perhaps can add spacebar here as well?

*/
public class Deadline extends Task {

protected LocalDate by;

Choose a reason for hiding this comment

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

Perhaps the instance variable name can be more descriptive, e.g. deadlineDate or date?


/**
* Marks task as done and prints message.
*/

Choose a reason for hiding this comment

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

Perhaps can add @return here, as part of the Javadoc?

The previous mainClassName was incorrectly used as the default example given in the tutorial.
Let's change it so that the JAR file generated is correct.
Let's enable assertions to check that important assumptions hold
throughout the code.
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.

2 participants