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

[dsja612] iP #239

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

[dsja612] iP #239

wants to merge 66 commits into from

Conversation

dsja612
Copy link

@dsja612 dsja612 commented Jan 25, 2023

Duke

"Quotations on the Internet are often misattributed." - Duke

Yet another school project??

Duke is a task manager written in Java, in an object-oriented manner. This is all so you can live your life in a task-oriented manner 🤓

"Pfft, why would I use Duke instead of Google Calendar??" - 🤓

  • Text-based, specifically for tech 🤓s.
  • Easy to learn
  • As fast as you can type

And it is FREE!

Features

  • CLI based (for now)
  • Saves your tasks even after you exit!
  • Everything is abstracted away just like OOP!

Download it here!

If you want to learn Java & OOP:

Feel free to check out how Duke is organized. Duke starts running from this code block in Duke.java:

    public static void main(String[] args) throws IOException {
        Duke.run();
    }

@sumhungyee
Copy link

Great job dude 👍

Copy link

@sumhungyee sumhungyee left a comment

Choose a reason for hiding this comment

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

Overall, I find your code easy to read! For the most part, it looks like coding standards were upheld! Great Job!

Comment on lines 31 to 32
* Displays a list of possible commands
* to the user

Choose a reason for hiding this comment

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

Might it be better to end with a fullstop?

Comment on lines 19 to 21
* @param name Name of the task
* @param startDate Starting date of the task
* @param endDate Ending date of the task

Choose a reason for hiding this comment

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

Might it be better to add a fullstop behind these lines?

}
case "D": {
String by = inputList[2];
LocalDateTime deadline = LocalDateTime.parse(by, DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm"));

Choose a reason for hiding this comment

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

Is this line a bit too long?

Copy link

@sumhungyee sumhungyee left a comment

Choose a reason for hiding this comment

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

Well done! Your code looks fantastic!


/**
* Constructor for DukeException that stores an error message.
* @param message Main body of error message

Choose a reason for hiding this comment

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

Perhaps this needs capitalising as well!


/**
* Loads tasks from a local file into a TaskList, creates one if one does not exist.
* @throws IOException If fail to load/create a storage file

Choose a reason for hiding this comment

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

Perhaps this needs capitalising as well!

Comment on lines 85 to 87
String[] inputList = input.split(",");
String taskType = inputList[0];
String taskName = inputList[1];

Choose a reason for hiding this comment

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

Your code here looks extremely readable! 👓

src/main/java/storage/Storage.java Outdated Show resolved Hide resolved
dsja612 and others added 25 commits February 2, 2023 00:15
The GUI does not automatically close after the bye command is entered.
The size of the window is also too small to display the initial list of
supported commands.

The GUI will now automatically close after a 3 second delay. Also, the
GUI window is a bit bigger to accommodate long lists of text in the
future if needed.
Add assertions for multiple files
Change Find command to use streams
Add command for user to find closest free day
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