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

[dohaduong] iP #263

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

Conversation

dohaduong
Copy link

@dohaduong dohaduong commented Jan 26, 2023

Duke

Your friendly task management app

"Until we can manage time, we can manage nothing else." - Peter Drucker source

Your busy life deserves this.
Duke is

  • an efficient task management app 💯
  • easy to use 👍
  • helps you stay organized 🥇

To start using Duke, you only need to follow these steps:

  1. Download and install Duke
  2. Add your tasks and deadlines
  3. Let Duke handle your timetable for you!

Available features:

  • Managing tasks
  • Managing deadlines and events
  • Reminder for deadlines and events

Duke can be used to practice your Java as a programmer too! Here's the main method for you to start with:

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

Users may want to undo the very last command.

Undo command has been added to Duke.
If the last command is only for listing/finding purpose, it will not be able to undone as these commands do not change any data that Duke has.

Users can now undo the last command, given that it is applicable.
Users may want to undo the very last command

let's,
* update Duke's available commands so that undo can become a legit command
* update Parser and Ui so that Duke can revert back to before the most recent command

We need to update Parser and Ui classes as these classes are used to
reply to users and get input from users directly
Comment on lines 185 to 191
} catch (IndexOutOfBoundsException e) {
throw new InvalidIndexException();
}
} catch (InvalidIndexException e) {
return (e.getMessage());
}
return new InvalidIndexException().getMessage();

Choose a reason for hiding this comment

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

good catching of exception cases!
but instead of nested try-catch blocks, could you try to use try-catch-catch instead?
try (...) { ... } catch (...) { ... } catch (...) { ... }

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

4 participants