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

[Gavin Cho] iP #530

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

[Gavin Cho] iP #530

wants to merge 41 commits into from

Conversation

Gavzzz
Copy link

@Gavzzz Gavzzz commented Sep 3, 2022

No description provided.

Copy link

@rycs2812 rycs2812 left a comment

Choose a reason for hiding this comment

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

Apart from the styling issues, I think the code is generally pretty okay. As long as all the increments are implemented eventually, I think the project will turn out fine!

@@ -0,0 +1,14 @@
public class Deadline extends Task {

protected String by;
Copy link

Choose a reason for hiding this comment

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

I think it might be better if the String had a more descriptive name, perhaps something like "date" or "deadline"?

Comment on lines 26 to 28



Copy link

Choose a reason for hiding this comment

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

I think it might be better if there was only a single blank line here

if (input.equals("list")) {
System.out.println("___________________________________");
for (int i = 0; i < counter; i++) {
System.out.println( (i+1) + "."
Copy link

Choose a reason for hiding this comment

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

Seems like there's an extra whitespace on this line, might need to remove it to follow the coding standards


else if (input.equals("mark")) {
int number = sc.nextInt();
collection.get(number-1).mark();
Copy link

Choose a reason for hiding this comment

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

Similar issue on missing/extra whitespaces, noticed this issue in several other places too, might have to address these to follow the coding standards

String logo = " ____ _ \n"
+ "| _ \\ _ _| | _____ \n"
+ "| | | | | | | |/ / _ \\\n"
+ "| |_| | |_| | < __/\n"
+ "|____/ \\__,_|_|\\_\\___|\n";
System.out.println("Hello from\n" + logo);
System.out.println("___________________________________");
Copy link

Choose a reason for hiding this comment

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

Perhaps the line break could be stored in a constant since it is used multiple times in the code

@@ -0,0 +1,27 @@
public class Task {
protected String description;
protected boolean isDone;
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 following the coding standards for naming boolean variables👍

Copy link

@ssyap98 ssyap98 left a comment

Choose a reason for hiding this comment

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

Overall code looks good! Just have to make some minor changes to follow the java coding standard!

Constants constant = Constants.valueOf(reader.next().toUpperCase());
Task task;
switch (constant) {
case TODO:
Copy link

Choose a reason for hiding this comment

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

There should not be indentation for the case clauses. It should look something like this
switch (constant) {
case TODO:


public class Event extends Task{

protected String at;
Copy link

Choose a reason for hiding this comment

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

Maybe you can change the variable name from "at" to "eventTime" so that it sounds more meaningful?

Gavzzz and others added 14 commits September 19, 2022 03:15
Detecting duplicates method implemented.

As a user I want to know if my planner has duplicates and if I accidentally added duplicates.

Hence, this method is important
Changed return type to String so return type can be more easily accessed  by the GUI.
Removed command package to fix some issues regarding the Jar FIle
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