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

[T6A3][F11-C3] Le Minh Duc #848

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

Conversation

darrenlmd
Copy link

No description provided.

… class' own method prepare() (which overrides the parent's class prepare() method)
…om parser and put them inside the appropriate PreparedCommand classes
Copy link

@cmkumar87 cmkumar87 left a comment

Choose a reason for hiding this comment

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

@acuodancer Please review and close PR. I believe you had tried to make parser OCP compliant. Please also try implementing DI and DIP.

@@ -2,6 +2,7 @@

import seedu.addressbook.commands.*;
import seedu.addressbook.data.exception.IllegalValueException;
import seedu.addressbook.preparedcommands.PreparedCommand;

import java.util.*;

Choose a reason for hiding this comment

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

resolve imports properly. It is easy to do with eclipse shortcut.

switch (commandWord) {
PreparedCommand pc = new PreparedCommand(arguments);
return pc.prepare();
/*switch (commandWord) {
Copy link

@cmkumar87 cmkumar87 Oct 7, 2016

Choose a reason for hiding this comment

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

Don't comment out code that is not being used. It is an ugly practice when a revision control system such as git is available. We can simply revert a change if it doesn't work. So, if you want to remove / move a chunk of of code commit after doing so to create a point to which you can revert to, if you wish so later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants