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

[W5][M11-1]Hu Yidi #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[W5][M11-1]Hu Yidi #33

wants to merge 1 commit into from

Conversation

huyidi
Copy link

@huyidi huyidi commented Feb 10, 2019

added a TotalCommand to output the total number of contacts in addressbook

Simple feature but straightforward and useful to manage memory space
Copy link

@warheade warheade left a comment

Choose a reason for hiding this comment

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

Simple additional feature but I think it may be useful in terms of storage management

@yingrong1996
Copy link

Very clean code. The feature is also pretty useful

Copy link

@okkhoy okkhoy left a comment

Choose a reason for hiding this comment

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

  • Try to follow the convention for github commit messages Add TotalCommand ... vs added a TotalCommand to output the total number of contacts in addressbook

  • Always remember to update the documentation and the tests for new features added.

    • Without documentation, your users will not be aware of the new command
    • Without tests, you are at a risk of regressions



/**
* Lists all persons in the address book to the user.
Copy link

Choose a reason for hiding this comment

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

Incorrect header comment. Remember to update the comment when you change the code (this looks like a copy-paste-forgot error)

@okkhoy
Copy link

okkhoy commented Feb 16, 2019

@huyidi
Some comments added. Please take note and close the pull request.

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.

5 participants