-
Notifications
You must be signed in to change notification settings - Fork 461
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
[Gregg] iP #509
base: master
Are you sure you want to change the base?
[Gregg] iP #509
Conversation
# Conflicts: # src/main/java/Duke.java
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.
Great job, I think the code is easy to read
* @param bool The boolean for whether the task is marked | ||
* or unmarked. | ||
*/ | ||
public void isMark(boolean bool) { |
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 this method name should start with a verb?
@@ -0,0 +1,14 @@ | |||
package exception; | |||
|
|||
public class DukeException extends IllegalArgumentException{ |
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 a whitespace before the opening brace here?
} | ||
} | ||
|
||
public void toPrint() { |
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 this method name should start with a verb
public class FileData { | ||
protected String fileName; | ||
protected File file; | ||
protected ArrayList<Task> tasks; |
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 like that you named it tasks
} | ||
} | ||
|
||
public ArrayList<Task> allTasks() { |
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 include a verb here for the method name eg. getAllTasks()
public class DeadlineTest { | ||
|
||
@Test | ||
public void getStatusIcon_unmarked() { |
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 like the clarity in your naming of the test methods!
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. Overall, most of the coding standards are complied with, except for a trivial amount that may have been accidentally left out. LGTM!
System.out.println("Got it. I've added this task:\n" + | ||
" " + currTask + "\n" + | ||
"Now you have " + taskList.size() + " tasks in the list.\n"); |
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 think the styling of this would be better if the line breaks before an operator. I've noticed this quite a bit, but good job on using linebreaks 👍
*/ | ||
|
||
public class AddCommand extends Command { | ||
protected String commandLine; |
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 didn't like the variable name for this, perhaps userInput is more intuitive? 🤔
* @return false. | ||
*/ | ||
@Override | ||
public boolean isExit() { |
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 on naming all your methods as a verb 👍
src/main/java/parser/Parser.java
Outdated
@@ -0,0 +1,48 @@ | |||
package parser; | |||
|
|||
import 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.
I didn't like the use of * in import because it violates the coding standard. It might be an improvement to list all imports explicitly
Use assert feature
Improve code quality
No description provided.