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

[Gregg] iP #509

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

[Gregg] iP #509

wants to merge 40 commits into from

Conversation

Hoodineee
Copy link

No description provided.

Copy link

@ee-suan ee-suan left a 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) {
Copy link

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{
Copy link

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() {
Copy link

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;
Copy link

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() {
Copy link

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() {
Copy link

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!

Copy link

@ElginL ElginL 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. Overall, most of the coding standards are complied with, except for a trivial amount that may have been accidentally left out. LGTM!

Comment on lines 62 to 64
System.out.println("Got it. I've added this task:\n" +
" " + currTask + "\n" +
"Now you have " + taskList.size() + " tasks in the list.\n");
Copy link

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;
Copy link

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() {
Copy link

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 👍

@@ -0,0 +1,48 @@
package parser;

import command.*;
Copy link

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

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.

3 participants