-
Notifications
You must be signed in to change notification settings - Fork 364
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
[zhengsterz] iP #41
base: master
Are you sure you want to change the base?
[zhengsterz] iP #41
Conversation
whenever the task list changes TaskFile class added to maintain tasklist.txt Updates to Red and Tasklist classes to enable this new feature.
# Conflicts: # src/main/java/DeadlineTask.java # src/main/java/Red.java
Command and Parser classes added,TaskFile was changed to Storage for better clarity and updates to all Task classes to accomodate these changes
Classes were already put into packages in previous commit
FindCommand added to facilitate this.
# Conflicts: # src/main/java/red/storage/Storage.java
# Conflicts: # src/main/java/red/parser/Parser.java # src/main/java/red/task/TaskList.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, a few cosmetic changes requested, coding standards can be improved by changing some of the variable names and attribute names, I like the quote in the description 👍
data/tasklist.txt
Outdated
@@ -0,0 +1,7 @@ | |||
This is your current task list: | |||
1. [E][ ] cry (From: 2pm To: 8am) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you could include the date along with the time? Since in your code for deadline and event you are using LocalDateTime
import red.task.ToDoTask; | ||
|
||
import red.ui.UI; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like how the imports are separated with a spacing into each category, very organised and tidy to read
public class EventTask extends Task { | ||
|
||
protected String by; | ||
protected String byy; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would help to have a more detailed attribute like
protected String start;
protected String end;
String[] arrOfStrStr= arrOfStr[1].split("\\(From: ", 2); | ||
String[] arrOfStrStrStr= arrOfStrStr[1].split("To: ", 2); | ||
String[] arrOfStrStrStrStr= arrOfStrStrStr[1].split("\\)", 2); | ||
EventTask currentTask = new EventTask(arrOfStrStr[0],arrOfStrStrStr[0],arrOfStrStrStrStr[0]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be good to change the variable name to something more specific,
for example
String[] arrOfFrom= arrOfStr[1].split("\\(From: ", 2);
similar for the other variable names
Add ability to run shadowJar by altering build gradle plus minor
CommandTask classes Un/MarkCommand assertions checks that the tasklist size will never be a negative number.Parser assertions checks that the parser does not read an empty line as user input.DeadlineTask assertions checks that the date and time provided conform to the necessary format. These ensure that if something were to go wrong it would be the result of the user input instead of a problem with the program itself.
Add assertions to Un/MarkCommand,Parser,DeadlineTask and
Revert "Add ability to run shadowJar by altering build gradle plus mi…
Revert "Add assertions to Un/MarkCommand,Parser,DeadlineTask and"
…rtions Revert "Revert "Add ability to run shadowJar by altering build gradle plus mi…"
…rtions Revert "Revert "Add assertions to Un/MarkCommand,Parser,DeadlineTask and""
expressions This was done to avoid complicated expressions, especially those having many negations and nested parentheses, thus increasing code quality.
Add booleans to some of the command classes to simplify
RED : Robotic Enhancer of Development
RED frees your mind of having to remember things you need to do. It's,
FASTSUPER FAST to useAll you need to do is,
And it is FREE!!!!
Features :