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

[Jxleejiaxin] iP #292

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

Conversation

Jxleejiaxin
Copy link

@Jxleejiaxin Jxleejiaxin commented Jan 26, 2023

DukePro for Pros (Free [DLC)]

"Life is too complicated not to be orderly." - Martha Stewart (source)

DukePro for Pros empowers you to remain organized when things get too hectic. It's,

  • text-based
  • easy to learn
  • FAST to use
  • Comes with free DLC

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! with FREE DLC

Features:

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

Copy link

@evanpy evanpy left a comment

Choose a reason for hiding this comment

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

LGTM, almost. Just a few nits to fix. 😄

Copy link

@Nafeij Nafeij left a comment

Choose a reason for hiding this comment

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

Some methods could have been better abstracted or encapsulated. Otherwise good work!

src/main/java/Deadline.java Outdated Show resolved Hide resolved
src/main/java/Duke.java Outdated Show resolved Hide resolved
src/main/java/Duke.java Outdated Show resolved Hide resolved
src/main/java/Deadline.java Outdated Show resolved Hide resolved
Copy link

@CShuwen CShuwen 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 found your code easy to read and your javaDocs are well written.
I like the way you define your classes, it keeps each method short and makes them flexible to new changes.
Just take note of some coding standard violations. I have commented on a few that I spotted. Good job! 👍

Comment on lines +22 to +24
* Deletes task from TaskList by index.
* Prompts Ui to display deleted task followed by reminder of number of tasks in TaskList.
* Prompts Storage to overwrite existing task storage file with new TaskList.
Copy link

Choose a reason for hiding this comment

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

I like how detailed the descriptions are but the summary of the method may need to be written in one sentence only.


/**
* Determine if Command is an instance of ExitCommand
* @return true if Command subclass is ExitCommand
Copy link

Choose a reason for hiding this comment

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

A minor point: In method header comments, the first sentence should start in the form Returns ..., Sends ..., Adds ... (not Return or Returnning etc.)
Maybe it would be better to change the start of the sentence to "Returns boolean value of......."

import duke.task.TaskList;
import duke.ui.Ui;

public class Duke {
Copy link

Choose a reason for hiding this comment

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

Do you think it would be better to define the class Duke despite its functionality was already mentioned in the README?
Was there any reason why description of class was not added to Duke?

Comment on lines 36 to 37


Copy link

Choose a reason for hiding this comment

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

I would suggest to remove excessive lines. Can try out using CheckStyle to detect coding style violations if you are interested. 😸

Jxleejiaxin and others added 19 commits February 6, 2023 22:52
Ui class is not required when GUI is handled through JavaFx.
Formatting is still required to get the desired output.

The formatting of strings is encapsulated in a more suitable class.
Desired output can be achieved by editing Formatter class.
SetSourceCommand is created in Duke by inputting "source [path to
file]". Users can switch between data sources and Duke will
automatically load the existing tasks in the data sources.
Removes an extra try-catch statement in the long parseFromUser method.
Avoids arrowhead style code.
Add different profile picture for Duke and User. Add borders to
text field. Add "command: " prefix to each user input to match the
assymetrical nature of the conversation by a little.
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