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

[Xu JiaChen]iP #60

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

Conversation

aaronxujiachen
Copy link

No description provided.

}
} else if (input.startsWith("mark") || input.startsWith("unmark")) {
// Split the input to separate command and task index
String[] arrOfInput = input.split(" ", 2);
Copy link

Choose a reason for hiding this comment

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

naming "arrOfInput" can be clearer to indicate that it stores the split of the input

System.out.println(message);
System.out.println(" " + tasks.get(index).getStatusIcon() + " " + tasks.get(index).description);
}
} catch (NumberFormatException e) {
Copy link

Choose a reason for hiding this comment

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

try-catch statementfollows coding standard

drawLine();
}

// Main method

Choose a reason for hiding this comment

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

good use of encapsulation and methods of sufficient-length

System.out.println("What can I do for you?");
drawLine();
}

Choose a reason for hiding this comment

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

sufficiently comprehensible comments

Copy link

@irving11119 irving11119 left a comment

Choose a reason for hiding this comment

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

Overall your code is well organised and it follows the coding standards. It is also very readable. The only suggestion I would have is look into using constants rather than magic types.


// Method to print the logo and introductory message
public static void hiDude() {
String logo = "### # \n"

Choose a reason for hiding this comment

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

Perhaps this logo could be implemented as a constant.

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