Skip to content

[LWachtel1] iP#201

Open
LWachtel1 wants to merge 36 commits into
nus-cs2113-AY2324S2:masterfrom
LWachtel1:master
Open

[LWachtel1] iP#201
LWachtel1 wants to merge 36 commits into
nus-cs2113-AY2324S2:masterfrom
LWachtel1:master

Conversation

@LWachtel1

Copy link
Copy Markdown

No description provided.

@yicheng-toh yicheng-toh 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.

Great progress on iP. Do take note to follow the coding standards from java coding standard.

Comment thread src/main/java/Deadline.java Outdated
Comment on lines +10 to +17
/*
public String getBy() {
return this.by;
}

public String setBy() {
return this.by;
}*/

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
/*
public String getBy() {
return this.by;
}
public String setBy() {
return this.by;
}*/

Perhaps you might want to remove commented code that are not in use.

Comment thread src/main/java/Duke.java Outdated
import java.util.Scanner;
import java.util.ArrayList;

// I am using the Google Java Style Guide https://google.github.io/styleguide/javaguide.html

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

For this module, we are following this java coding standard.

Comment thread src/main/java/Duke.java Outdated
System.out.printf("%s%n"," ____________________________________________________________");
}

public static void replyAddedTask(){

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
public static void replyAddedTask(){
public static void replyAddedTask() {

Perhaps considering adding a space here to be consistent with the rest of the methods.

Comment thread src/main/java/Duke.java Outdated
String taskType=userCommand.split(" ")[0].toUpperCase();

switch (taskType) {
default:

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 you might want to put "default" statement at the end of the switch statements.

Comment thread src/main/java/Duke.java Outdated
break;

case "DEADLINE":
String[] deadLine=userCommand.split("/");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
String[] deadLine=userCommand.split("/");
String[] deadLine = userCommand.split("/");

You might want to consider adding spaces before and after the "=" sign for better readability.

Comment thread src/main/java/Duke.java Outdated

switch (markChoice) {

case "MARK":

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
case "MARK":
case "MARK":

Perhaps you might want to put the case statements with same amount of indentation with the switch statement in accordance to java coding standard.

Comment thread src/main/java/Duke.java Outdated
boolean shouldExitLoop=false;

while (!shouldExitLoop) {
if (enteredCommands.size()>=100) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You might want to consider using a constant to replace the magic number of 100.

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.

2 participants