-
Notifications
You must be signed in to change notification settings - Fork 228
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
[Ryan Jee] iP #268
base: master
Are you sure you want to change the base?
[Ryan Jee] iP #268
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.
Generally code is quite well written! However, might want to be careful in leaving spaces where necessary in order not to violate coding standards. Other than that, LGTM!
src/main/java/Duke.java
Outdated
|
||
|
||
public Duke(String filePath){ | ||
ui = new Ui(); |
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.
Might want to consider removing extra space(s) between new Ui()
src/main/java/Duke.java
Outdated
Command command = parser.parse(input); | ||
String reply = command.execute(ui,taskList, storage); | ||
storage.writeFile(); | ||
assert(reply!=null); |
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 use of assertions!
src/main/java/Storage.java
Outdated
DukeList dukeList = new DukeList(); | ||
StringBufferTasks = new StringBuffer(); | ||
try{ | ||
BufferedReader reader = new BufferedReader(new InputStreamReader(new DataInputStream(new FileInputStream(this.filename)))); |
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.
Might have exceeded line limit
src/main/java/Storage.java
Outdated
Path filePath = Path(current,filename); | ||
boolean directoryExist = Files.exists(direcPath); | ||
boolean fileExist = Files.exists(filePath); | ||
try{ |
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.
Might want to include spacing in between try {
src/main/java/Ui.java
Outdated
|
||
public String showTaskAdded(String task, List<Task> taskList){ | ||
assert(task != null && taskList != null); | ||
return String.format( "Added the following task : \n" + "%s\n" + "You now have %d tasks in your list.\n", task, taskList.size()); |
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.
Might have exceeded line limit
src/main/java/Storage.java
Outdated
|
||
public Storage (String filename){ | ||
this.filename = new File(filename); | ||
accessTaskListInFileSystem(getCurrentDirectory()); |
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.
Clear and concise naming of method
src/main/java/tasktype/Task.java
Outdated
return " [" + type + "] " + " [" + getStatusIcon() + "] " + getname(); | ||
} | ||
else{ | ||
return " [" + type + "] " + " [" + getStatusIcon() + "] " + getname() + " " + dateTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd kkmm")); |
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.
Might have exceeded line limit
Add CBye class for command bye
Add CDeadline class for command deadline
Add CDelete class for command delete
Add CDone class for command done
Add CEvent class for command event
Add CList class for command list
Added javadoc
Added javadoc
update package
Added javadoc
Updated package
Added javadoc
Added javadoc
Added javadoc
Added javadoc
Added javadoc
Added javadoc
Added javadoc
Added javadoc
Add bot.png
Add user picture
Updated expected output
Update test input
Update name
No description provided.