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

[Adi Kesava] iP #11

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

Conversation

adi-kd0021
Copy link

[Adi Kesava] iP / TIC4001_Level-3 iP - PR

/**
* Prints "Your task?"
*
* @return the line read in after trimming trailing and leading spaces

Choose a reason for hiding this comment

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

I like how you write the java documentation, it makes us understand your code clear. 👍


@Override
public void setDescription(String description) {
super.setDescription(description);

Choose a reason for hiding this comment

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

Should this method be Override?😃

Comment on lines 47 to 48
// return new Deadline(description, deadline);
return new Deadline(description, deadline);

Choose a reason for hiding this comment

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

Overall code quality is good, comment is clear, but some place can be delete.

Re-modified Constants to adhere to coding standards.
Adjusted Packages
Quality is there
if (description.isEmpty() || description.equals("")) {
System.out.println("Empty description for DEADLINE");
throw new DukeException("Empty description for DEADLINE");
}
String deadline = fullCommand.substring(idxOfBy, fullCommand.length()).substring("/by".length()).trim();
if (deadline.isEmpty() || deadline.equals("")) {

Choose a reason for hiding this comment

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

I never know isEmpty command. I always checked if the string size =0. Thanks for the tips!

int idxOfBy = fullCommand.indexOf("/at");
if (idxOfBy < 0) {
System.out.println("Event does not contain /at");
throw new DukeException("Event does not contain /at");
}

String description = fullCommand.substring(0, idxOfBy).substring("event".length()).trim();

Choose a reason for hiding this comment

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

Perhaps we can break into 2 lines for more readable code?

e0261621 and others added 30 commits September 29, 2020 00:32
# Conflicts:
#	docs/README.md
Also added checkstyle
Also added checkstyle
Fixed all CheckStyle errors
Something is still breaking...
Okay it seems to be working now...
Added in relevant icon and Ui.png
Renamed Ui.png
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.

5 participants