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

[Zheng Shijie] iP #8

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

Conversation

ZhengShijieNUS
Copy link

No description provided.

@@ -19,16 +19,16 @@ public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
ArrayList<Task> tasks = new ArrayList<>();

while(true){
while (true) {

Choose a reason for hiding this comment

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

If there's a condition to exit the program, would it be better to place the condition inside here? In terms of readability.
while(! isByeCommand).
Not saying is wrong, but it would beneficial to people reading the code.

break;
default:
System.out.println("Command is unknown,please re-try.");
}
}catch(Exception e){
} catch (Exception e) {
System.out.println("Internal error occurs,please re-enter the command.");

Choose a reason for hiding this comment

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

By catching this exception, will you be able to find out what's wrong or which function is causing the error?
And should it continue when it hit an error?

Copy link

@skyventus skyventus left a comment

Choose a reason for hiding this comment

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

Good Job! doesn't seem to have "code" violations. However, I would suggest leaving some comment in codes would help your colleague understand faster while going through the code.

@@ -39,7 +39,7 @@ public static void main(String[] args) {
break;
case "done":

Choose a reason for hiding this comment

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

Maybe we should align switch statement and Case statement as suggested by Java Coding Standard?

zhengshijie and others added 30 commits January 29, 2021 11:48
function migration completed
fixed no file loaded issue
Add main method to Duke.java for passing in CI
to remove unnecessary check part
remove run part only
change source compatibility
1. add extension tag
2. fixed dialog couldn't display long string bugs
Shorten methods in Duke
rectify checkstyle issue
Refine tag function, To make sure tag could be stored and load from file also.
Refine GUI:
add background pic,
adjust font size
adjust button background
1. resolve compatibility issue on font
2. optimize logic, enter bye will exit the program directly
Add GUI description
Add tag functionality
refine user guide
refine user guide
Create README landing page
1st draft of Developer Guide
add architecture diagram and update developer guide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants