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

[Zoebelle Pang] iP #470

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

Conversation

zoebelle-pang
Copy link

@zoebelle-pang zoebelle-pang commented Feb 6, 2024

Bentley

The background color is #ffffff for light mode and #000000 for dark mode.
#0969DA

"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 😉

README guidelines for this project

And it is FREE!

Features:

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

showcase

Some input commands are:

todo homework

Note

Use clear and detailed task outlines to improve how you handle your tasks. It's easier to find jobs and keep things organised in Bentley when details are clear.

Click here to visit GitHub and see some inline code.

require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html

damithc and others added 15 commits January 7, 2024 18:33
Let's tweak the docs/README.md (which is used as the user guide)
to fit Duke better. Specifically,

1. mention product name in the title
2. mention adding a product screenshot and a product intro
3. tweak the flow to describe feature-by-feature
This reverts commit ce111a4.
Copy link

@tsulim tsulim left a comment

Choose a reason for hiding this comment

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

Hello there!👋

Great job overall. Most codes are in line with the Java Coding Standard and are easy to read.
Just minor inconsistencies with the Java Coding Standard need to be fixed. 🛠️
Keep up the good work! 💯

Also, I noticed that your Week 3's tasks are missing, please remember to push them if you have already completed them! If you have not done so, I wish you all the best! 💪✨

}

public void markAsDone() {
this.isDone = true;
Copy link

@tsulim tsulim Feb 8, 2024

Choose a reason for hiding this comment

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

Should the this keyword be used here? Perhaps you could refer to the Java Coding Standard under the variables section?

}

public void markAsUndone() {
this.isDone = false;
Copy link

@tsulim tsulim Feb 8, 2024

Choose a reason for hiding this comment

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

Similar to the previous comment, should the this keyword be used here?

return "[E]" + super.toString() + " (from: " + from + " to: " + to + ")";
}
}

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.

Perhaps you could change the class name to your bot's name?


public Task(String taskDescription) {
this.taskDescription = taskDescription;
this.isDone = false;
Copy link

@tsulim tsulim Feb 8, 2024

Choose a reason for hiding this comment

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

I noticed the same issue in other places too.

Comment on lines 78 to 87
if (userInput.equals("Bye")) {
System.out.println("Bye. Hope to see you again soon!");
break;
} else if (userInput.equals("List")) {

for (int i = 0; i < tasks.size(); i++) {
System.out.println((i + 1) + ". " + tasks.get(i));
}

} else if (userInput.startsWith("todo")) {
Copy link

Choose a reason for hiding this comment

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

I have only highlighted a small portion but good job on using K&R style brackets (aka Egyptian style) throughout your code.

Comment on lines 138 to 139
for (int i = 0; i < tasks.size(); i++) {
System.out.println((i + 1) + ". " + tasks.get(i));
Copy link

Choose a reason for hiding this comment

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

I liked how you have added white spaces within the statements according to the Java Coding Standard.

}

public String toString() {
return "[" + (isDone ? "X" : " ") + "] " + taskDescription;
Copy link

Choose a reason for hiding this comment

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

Good use of whitespaces here! 👍

Choose a reason for hiding this comment

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

perhaps it should be while the input is not equal to "bye", rather than while(true)?

zoebelle-pang and others added 30 commits February 23, 2024 04:35
This reverts commit 9ed10ba.
…g for status tracking

Enhance file open handling in the Storage class to provide better feedback and prevent potential issues.
Introduce a boolean flag, fileIsOpen, to track the status of the file.

Step forward, utilize assert statements in Duke class to ensure file openness before processing user input.
C-DetectDuplicates

Detect duplicate in todo tasks
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.

4 participants