Skip to content

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

Open
darrenlmd wants to merge 3 commits intonus-cs2103-AY1617S1:masterfrom
darrenlmd:T6A3
Open

[T6A3][F11-C3] Le Minh Duc #848
darrenlmd wants to merge 3 commits intonus-cs2103-AY1617S1:masterfrom
darrenlmd:T6A3

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.

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