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

[Quek Wei Ping] Duke Increments #342

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

Conversation

qweiping31415
Copy link

No description provided.

@MauriceTXS
Copy link

Code looks good and neat!

Copy link

@Yehezkiel01 Yehezkiel01 left a 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.

return String.format("[D][%s] %s(by: %s)", getStatusIcon(),
getDescription(), getTime());
}
}

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.

+ "| |_| | |_| | < __/\n"
+ "|____/ \\__,_|_|\\_\\___|\n";
System.out.println("Hello from\n" + logo);
List<String> start = new ArrayList<>();

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.

}

public static ToDo createToDo(String [] tokens) {
StringBuilder builder = new StringBuilder();

Choose a reason for hiding this comment

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

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