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

[zhengsterz] iP #41

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

Conversation

zhengsterz
Copy link

@zhengsterz zhengsterz commented Jan 20, 2023

RED : Robotic Enhancer of Development

“Everybody wants to be a bodybuilder, but nobody wants to lift no heavy-ass weights.” ― Ronnie Coleman(source)

RED frees your mind of having to remember things you need to do. It's,

  • text-based
  • text-based
  • FAST SUPER FAST to use

All you need to do is,

  1. Download it from here
  2. Double-click it
  3. Add your tasks
  4. Let it manage tasks for you 👍

And it is FREE!!!!

Features :

  • Managing tasks
  • Managing deadlines (coming soon)
  • Reminders (coming soon)

damithc and others added 26 commits July 31, 2022 17:20
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
Copy link

@JunHao247 JunHao247 left a 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 👍

@@ -0,0 +1,7 @@
This is your current task list:
1. [E][ ] cry (From: 2pm To: 8am)

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;

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;

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]);

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

zhengsterz and others added 26 commits February 7, 2023 14:11
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
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.

None yet

2 participants