-
Notifications
You must be signed in to change notification settings - Fork 252
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
[AY1920S1-CS2113-T14-2] restaurant manager #92
base: master
Are you sure you want to change the base?
[AY1920S1-CS2113-T14-2] restaurant manager #92
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, good progress. Take a look at my suggestions.
You should follow the Java Coding Standards for JavaDoc comments and naming conventions. We also recommend that you delete commented out code as it makes the code more readable.
import java.util.List; | ||
|
||
public class DishList { | ||
private List<Dishes> dishlist; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important that you write proper JavaDoc comments for all classes. You can find the Java Coding Standards on the module website
|
||
// public String toString() { | ||
// return dishname; | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's best to delete commented out code
src/main/java/duke/command/Cmd.java
Outdated
import duke.ui.Ui; | ||
|
||
public abstract class Cmd<T> { | ||
public abstract void execute(T tasklist, Ui ui, Storage storage) throws DukeException; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe using a more descriptive name like Command
might be better?
private Dishes dish; | ||
private int amount; | ||
private int Nb; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is Nb
? Better to use a more descriptive name. That way even someone who's reading your code for the first time can understand what's going on in that part of the code
* Convert between String and Date. | ||
*/ | ||
public class Convert { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Convert what? Consider renaming to something more descriptive
src/test/FridgeTest.java
Outdated
Fridge fridge = new Fridge(); | ||
@Test | ||
void testPutIngredient() throws DukeException { | ||
fridge = new Fridge(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Names for tests should follow the format featureUnderTest_testScenario_expectedBehavior(). Update accordingly for all the testcases
* updated UG implemented while loop in Duke class for Dish modified parser to handle more errors
updated DG and UG
update multi-level command
update Parser, Ui, and Duke main class.
update order feature
Updating my end
to fix issues reported by PED run
2. Format order command to make sense and better user experience. 3. Add functions to check for valid date/month/year. 4. Fix update problem in setting an order date. 5. Extract Parser.parse function case "c" to several subfunctions--look neat. 6. Fix crashes when converting a string to date. 7. Fix small typo when printing out messages.
More neat order command and handle exceptions
… clear list" provides no visual indication #87
* additional Javadoc * updated UG
* minor update to UG and DG
some changes to DG
added a check for ingredient name length,
DG update
will upload ppp later
Update dg
No description provided.