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

[Lulu Y] iP #473

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

[Lulu Y] iP #473

wants to merge 37 commits into from

Conversation

luluyousef
Copy link

@luluyousef luluyousef commented Aug 26, 2021

DukePro

“Your mind is for having ideas, not holding them.” – David Allen (source)

DukePro 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 (coming soon)
  • 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);
    }
}

@luluyousef luluyousef changed the title Lulu Y [Lulu Y] iP Aug 26, 2021
Copy link

@Joel-Sung Joel-Sung left a comment

Choose a reason for hiding this comment

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

Overall, your code quality is pretty good in my opinion. Just some things to take note, I think you should start adding spaces within your statements as it is part of the Java coding standard. Maybe also consider declaring class variables as private, unless you have a reason to do otherwise.

f.createNewFile();
}
Scanner sc = new Scanner(f);
ArrayList<Task> t = new ArrayList<>();

Choose a reason for hiding this comment

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

I am not sure I like the name of the ArrayList. I think giving it a clearer name would improve the readability of your code. For example, 'taskList'.

int ctr = 0;
Scanner scanner = new Scanner(System.in);
System.out.println("_______________________________________________");
System.out.println("Hello! I'm Duke\n" + "What can I do for you?");

Choose a reason for hiding this comment

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

I think placing a line break before the '+' would improve improve the readability of your code. This is because you add a next line character before the '+', so presenting your code in the same way the output will look would be nice.

System.out.println(d.getMessage());
}
}
}catch(IOException e){

Choose a reason for hiding this comment

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

I think you may have missed this. Add a space between the } and catch.

text = text.concat("0|");
}
text = text.concat(t.description + "|" + ((Event) t).by + "\n");
}

Choose a reason for hiding this comment

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

I think it is better to add a space around every 'if', 'else' and 'for' as this helps the readability of your code.

@@ -0,0 +1,5 @@
public class DukeException extends Exception{

Choose a reason for hiding this comment

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

I think you should add a space after Exception. I noticed that this is a recurring practice for your classes. Adding a space between the class declaration and the { will help to add readability to your code. I suggest you read the part on "White space within a statement" in the Java coding standard 😄 .

@@ -0,0 +1,15 @@
public class Event extends Task{

protected String by;

Choose a reason for hiding this comment

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

I think it would be better to keep your class variables as private. Do you have a reason to declare them as protected?

Copy link

@tchiong tchiong left a comment

Choose a reason for hiding this comment

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

Other than the comments from the other reviewers and myself, LGTM!

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

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.

Could perhaps add header docs to the class!

}
int ctr = 0;
Scanner scanner = new Scanner(System.in);
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.

Can perhaps use a function to print the dividers to make the code look more readable!

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