-
Notifications
You must be signed in to change notification settings - Fork 19
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
base: master
Are you sure you want to change the base?
[Zheng Shijie] iP #8
Conversation
src/main/java/Duke.java
Outdated
@@ -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) { |
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.
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.
src/main/java/Duke.java
Outdated
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."); |
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.
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?
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.
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.
# Conflicts: # src/main/java/Duke/Tasks/ToDos.java
src/main/java/Duke.java
Outdated
@@ -39,7 +39,7 @@ public static void main(String[] args) { | |||
break; | |||
case "done": |
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 we should align switch statement and Case statement as suggested by Java Coding Standard?
function migration completed
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
No description provided.