Skip to content

[W5][T11-2]Teo Xuan Wei - #56

Open
shawn-t wants to merge 4 commits into
nusCS2113-AY1819S2:masterfrom
shawn-t:master
Open

[W5][T11-2]Teo Xuan Wei#56
shawn-t wants to merge 4 commits into
nusCS2113-AY1819S2:masterfrom
shawn-t:master

Conversation

@shawn-t

@shawn-t shawn-t commented Feb 11, 2019

Copy link
Copy Markdown

No description provided.

- prints "addressbook is sorted in alphabetical order" when command is called.
- DummySort is reflected in the User Guide with the full list of the remaining commands (when command "help" is entered).
@liguanlong

Copy link
Copy Markdown

It is nice that you update the version of the address book from 1.0 to 1.1, and put blank lines among code to enhance readability in DummySortCommand.java.

@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 Xuan Wei,

Good effort in updating the documentation, however you could be more accurate in describing what action does your pseudosort command perform - it only prints a sort success statement, and does not pseudo sort, nor provide any operations stubs that suggests so.

Also, you could have written an I/O or unit test for your new enhancement.

*/
public class Main {

// test commit

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this comment is not relevant to the enhancement. you may wish to remove this.


@Override
public CommandResult execute() {
return new CommandResult(MESSAGE_SUCCESS);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It would be good if you have also attempted the actual sort logic, instead of returning a print statement.
Note that you are not performing a pseudo-sort here, unlike what is written in your documentation. Only a success statement is printed.


public static final String MESSAGE_SUCCESS = "Address book is sorted in alphabetical order! ^^";

@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.

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