Skip to content

[W5][T08-4]Phan Duy Nhat Tan - #49

Open
tantantan277 wants to merge 4 commits into
nusCS2113-AY1819S2:masterfrom
tantantan277:W5
Open

[W5][T08-4]Phan Duy Nhat Tan#49
tantantan277 wants to merge 4 commits into
nusCS2113-AY1819S2:masterfrom
tantantan277:W5

Conversation

@tantantan277

Copy link
Copy Markdown

No description provided.

@tantantan277 tantantan277 changed the title [W5][T08]Phan Duy Nhat Tan [W5][T08-4]Phan Duy Nhat Tan Feb 11, 2019
@nus-se-pr-bot
nus-se-pr-bot requested a review from okkhoy February 11, 2019 09:08

@shanseet shanseet left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nice command. Good job!

@weizhang05

Copy link
Copy Markdown

Useful command to check the size of the address book. Commits are separated clearly with specific purpose.

@stephlewyh stephlewyh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi Phan,

Good first attempt, having updated the user guide and enhancement. Note that you could have provided unit test for each new enhancement and supply header comments for your enhancement.

Comment thread docs/UserGuide.adoc
Views all details of the 1st person in the results of the `find` command.

== Show the number of person in the address book : `size`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What is the description for this feature? It is missing.

public static final String MESSAGE_USAGE = COMMAND_WORD + ": Show the size of the address book.\n"
+ "Example: " + COMMAND_WORD;

@Override

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing header comment. All non-trivial methods should have java doc format header comments.

/**
* Show the size of the address book
*/
public int size() {return allPersons.size();}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

method call of size() should be put on a separate line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants