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 ZhiZhi] iP #336

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

Conversation

zhizhizhizhizhi
Copy link

No description provided.

Copy link

@gsmoon97 gsmoon97 left a comment

Choose a reason for hiding this comment

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

You have done such a wonderful job of following the coding standards. To be honest, I had a hard time finding any errors or mistakes in your code. Keep up the good work 👍

} else {
throw new DukeException(DukeException.IGNORE);
}
} else if (task.length > 0 && task[0].equals("todo")){
Copy link

Choose a reason for hiding this comment

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

Shouldn't the 'if condition' and the 'following {' be separated by a single whitespace?

import java.io.IOException;
import java.util.ArrayList;

import Tasks.*;
Copy link

Choose a reason for hiding this comment

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

Perhaps the relevant Task libraries could be listed and imported explicitly instead of using a wildcard import?

Copy link

@ngmarcus ngmarcus left a comment

Choose a reason for hiding this comment

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

Great code quality and excellent adherence to coding conventions overall!

import TaskList.TaskList;

public class FindCommand extends Command {
private String searchText;
Copy link

Choose a reason for hiding this comment

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

Perhaps userInput would be a more suitable variable name than searchText?

return (completed ? "[✓]" : "[✗]") + " " + name;
}

public enum Type {
Copy link

Choose a reason for hiding this comment

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

I like your suitable use of enum here!

this.type = type;
}

public enum CommandType {
Copy link

Choose a reason for hiding this comment

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

Nice use of enum here!

return s;
}

public static String welcomeMessage() {
Copy link

Choose a reason for hiding this comment

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

Should the method be named more accurately with a verb, perhaps getWelcomeMessage()?

return print("Try again! Date format should be yyyy-mm-dd.");
}

public static String exitMessage() {
Copy link

Choose a reason for hiding this comment

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

Should the method be named more accurately with a verb, perhaps getExitMessage()?

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