Skip to content

[Tan Gee Teng] iP#281

Open
geetengtan wants to merge 45 commits intonus-cs2103-AY2122S2:masterfrom
geetengtan:master
Open

[Tan Gee Teng] iP#281
geetengtan wants to merge 45 commits intonus-cs2103-AY2122S2:masterfrom
geetengtan:master

Conversation

@geetengtan
Copy link

@geetengtan geetengtan commented Jan 28, 2022

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
  • 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);
    }
}

Copy link

@yunbinmo yunbinmo left a comment

Choose a reason for hiding this comment

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

I like how you make most of the names sound straightforward and the code blocks are properly separated by empty lines!

Copy link

@seksek13 seksek13 left a comment

Choose a reason for hiding this comment

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

Overall, methods and variables had followed the naming convention, good job!


public String find(String keyword) {
String resultStr = "";
boolean keywordFound = false;
Copy link

Choose a reason for hiding this comment

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

Boolean variable should use a prefix such as is, has, was.

myPrint(tasks.delete(Parser.getIndex(input)));
break;
case FIND:
myPrint(tasks.find(Parser.getDescription(input)));
Copy link

Choose a reason for hiding this comment

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

Maybe it will be better to change the myprint() method name to something that would explain the function better

* @return String that describes the number of tasks in the TaskList
*/
public String count() {
String isSingular = "s";
Copy link

Choose a reason for hiding this comment

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

Why does the string variable had the prefix "is", it might be confusing for others as this prefix is reserved for boolean variables. It might be better to rename this variable :)

tasks.add(new Event("party ", LocalDate.of(2022, 12, 12)));
tasks.add(new ToDo("borrow book"));

TaskList t = new TaskList(tasks);
Copy link

Choose a reason for hiding this comment

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

is it possible to rename this variable name so that it would be clearer in showing what you are doing?

geetengtan and others added 15 commits February 6, 2022 23:05
Code was messy and might be unreadable

Code quality improvement helps for future reference and checking.

Let's
* check for error-prone practices
* delete all dead code
Find command is case sensitive

A case insensitive find is more user-friendly because users cannot
be expected to remember the exact case of the keywords.

Let's update the search algorithm to use case-insensitive matching
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