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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Saha9616] iP #371

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

[Saha9616] iP #371

wants to merge 39 commits into from

Conversation

Saha9616
Copy link

@Saha9616 Saha9616 commented Jan 31, 2023

THANOS

"Your mind is for having ideas, not holding them." - David Allen (source)

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

  • text-based
  • easy to learn
  • 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 your tasks for you 馃槣

And it is FREE!

Features:

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

If you Java programmer, you can use it to practice Java too. Here's the main method:

public class Main {
   public static void main(String[] args) {
       Application.launch(MainApp.class, args);
   }
}

@@ -0,0 +1,24 @@
public class Deadline extends Task{
Copy link

Choose a reason for hiding this comment

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

Your files are missing package declarations

Choose a reason for hiding this comment

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

Should the classes be in a package?

@@ -1,10 +1,93 @@
import java.util.*;
Copy link

Choose a reason for hiding this comment

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

import.* syntax is discouraged


@Override
public String toString() {
if(super.status == true) {
Copy link

Choose a reason for hiding this comment

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

There should be a space between if and (


lst.add(new Todo(str));
}
else if((str.split(" ", 2)[0]).equals("deadline")) {
Copy link

Choose a reason for hiding this comment

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

The if here is also missing a space

if((str.split(" ", 2).length == 1)) {
throw new NoDescriptionException();
}
else if((str.split(" ", 2)[0]).equals("todo")) {
Copy link

Choose a reason for hiding this comment

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

Maybe you should consider using equalsIgnoreCase instead

Copy link

@anthonynmh anthonynmh left a comment

Choose a reason for hiding this comment

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

Good job on the code 馃憤 !

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

Choose a reason for hiding this comment

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

Should the classes be in a package?

Comment on lines 7 to 13
String[] mainSplit = super.task_name.split(" ", 2); //original : "event project meeting /from Mon 2pm /to 4pm"
String name = mainSplit[1]; // gives "project meeting /from Mon 2pm /to 4pm"
String[] StrList1 = name.split(" /from ", 2); //gives ["project meeting","Mon 2pm /to 4pm"]
String nameMain = StrList1[0]; //gives "project meeting"
String[] StrList2 = StrList1[1].split(" /to ", 2); //gives ["Mon 2pm", "to 4pm"]
String frm = StrList2[0]; //gives "Mon 2pm"
String to = StrList2[1]; //gives "to 4pm"

Choose a reason for hiding this comment

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

Perhaps proper naming of variables can help to reduce the number of comments. Maybe consider frm to be renamed to startingTime and to to endingTime.

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

3 participants