-
Notifications
You must be signed in to change notification settings - Fork 315
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
[Quek Wei Ping] Duke Increments #342
base: master
Are you sure you want to change the base?
Conversation
Add toolVersion block in to Gradle code sample to prevent errors.
Change file mode on `gradle` to be executable (nus-cs2103-AY1920S1#9)
Code looks good and neat! |
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.
I would recommend to git ignore the *.class file since those file will most likely be changed everytime you change your java code. Hence, it will be more convenient to just ignore them. Moreover, the bytecode will no longer be used when you have automated your build with gradle.
Overall, you have done a great job on the project. In fact, you have prepared a lot of test cases. Therefore, you should be able to refactor your code easily without causing regeression.
src/main/java/Deadline.java
Outdated
return String.format("[D][%s] %s(by: %s)", getStatusIcon(), | ||
getDescription(), getTime()); | ||
} | ||
} |
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.
I would suggest adding a new line at the end of each file. Although, it is not in the coding standard, but usually git complains when there is no new line.
src/main/java/Duke.java
Outdated
+ "| |_| | |_| | < __/\n" | ||
+ "|____/ \\__,_|_|\\_\\___|\n"; | ||
System.out.println("Hello from\n" + logo); | ||
List<String> start = new ArrayList<>(); |
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.
Duke.java seems to be too complicated since it contains too much logic inside. Therefore, I recommend you to do some refactoring in the code so that the code be more mantainable. Try to refer to Week3's Project on A-MoreOOP increments, it really helps me in improving my code design.
src/main/java/ToDo.java
Outdated
} | ||
|
||
public static ToDo createToDo(String [] tokens) { | ||
StringBuilder builder = new StringBuilder(); |
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.
You can take a look at String.join method to make the code simpler.
Implment Save and Refactor
Implement Dates and Times
Write JavaDoc
Implement Find Command
Try out rebase
Branch A-Assertions
A-CodeQuality
No description provided.