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

[Lionel Lim] iP #222

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

[Lionel Lim] iP #222

wants to merge 33 commits into from

Conversation

WhiteLio
Copy link

No description provided.

Copy link

@constancensq constancensq left a comment

Choose a reason for hiding this comment

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

Generally, most of the code seems to follow the coding convention. However, mainly could check on the JavaDoc comments to ensure that the descriptions and @params description ends with a period, and there are some JavaDoc comments which are incomplete with just "..." written. Also, there are one or two variable/methods names that could be reviewed. Other than that, others looks good!

*/
public static Command parse(String fullCommand) throws Exception {
String[] splitCommand = fullCommand.split(" ", 2);
String[] params;

Choose a reason for hiding this comment

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

Perhaps you could use another naming that could show better that it is a multivalued variables e.g. commandWords ?


/**
* The storage deals with loading tasks from the file and saving tasks in the file
*

Choose a reason for hiding this comment

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

Perhaps the description for the JavaDoc comment could end with a period, to follow the coding conventions. I think I noticed this for other methods as well.

* Constructor of empty list
*/
public TaskList() {
}

Choose a reason for hiding this comment

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

Perhaps could remove this if it is not necessary, since there is a default constructor?

* ...
*/
public void taskDeleted(Task task, TaskList tasks) {
System.out.println("Noted. I've removed this task: ");

Choose a reason for hiding this comment

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

Perhaps you can use verbs to name the methods?

class Task {
private final String name;
private boolean done = false;

Choose a reason for hiding this comment

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

Perhaps this could be named as isDone instead?

* Constructor
*
* @param filePath File path of the storage file
*/

Choose a reason for hiding this comment

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

Perhaps the description for the @param should also end with a period, similarly for other JavaDoc comments

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