Skip to content

[Xu JiaChen]iP#60

Open
aaronxujiachen wants to merge 29 commits into
nus-cs2113-AY2324S1:masterfrom
aaronxujiachen:master
Open

[Xu JiaChen]iP#60
aaronxujiachen wants to merge 29 commits into
nus-cs2113-AY2324S1:masterfrom
aaronxujiachen:master

Conversation

@aaronxujiachen

Copy link
Copy Markdown

No description provided.

Comment thread src/main/java/Duke.java Outdated
}
} else if (input.startsWith("mark") || input.startsWith("unmark")) {
// Split the input to separate command and task index
String[] arrOfInput = input.split(" ", 2);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

naming "arrOfInput" can be clearer to indicate that it stores the split of the input

Comment thread src/main/java/Duke.java Outdated
System.out.println(message);
System.out.println(" " + tasks.get(index).getStatusIcon() + " " + tasks.get(index).description);
}
} catch (NumberFormatException e) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

try-catch statementfollows coding standard

Comment thread src/main/java/Duke.java Outdated
drawLine();
}

// Main method

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

good use of encapsulation and methods of sufficient-length

Comment thread src/main/java/Duke.java Outdated
System.out.println("What can I do for you?");
drawLine();
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

sufficiently comprehensible comments

@irving11119 irving11119 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Overall your code is well organised and it follows the coding standards. It is also very readable. The only suggestion I would have is look into using constants rather than magic types.

Comment thread src/dude/Dude.java Outdated

// Method to print the logo and introductory message
public static void hiDude() {
String logo = "### # \n"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Perhaps this logo could be implemented as a constant.

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