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

[chongweiguan] iP #244

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

Conversation

chongweiguan
Copy link

@chongweiguan chongweiguan commented Jan 25, 2023

DukeBot

“Your mind is for having ideas, not holding them.” – David Allen (an example)

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

Where do I begin?

All you need to do is,

  1. download the JAR file 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
  • Managing events
  • Managing 'do within a period' task

Copy link

@izzhafeez izzhafeez left a comment

Choose a reason for hiding this comment

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

Looks good. Just some camelCase violations.

Comment on lines 109 to 111
LocalDateTime formattedstartTime = LocalDateTime.parse(from, dateTimeFormatter);
LocalDateTime formattedendTime= LocalDateTime.parse(to, dateTimeFormatter);
Event event = new Event(command.substring(0,fromStart-7), formattedstartTime, formattedendTime);

Choose a reason for hiding this comment

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

Hi, I'm your commenter and I would like to confirm whether the camelCase for these variable declarations has been fixed? Otherwise, great job on the clean code!

Copy link

@afiqzu afiqzu left a comment

Choose a reason for hiding this comment

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

Code looks good overall bro 👍 Keep it up!

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.*;
Copy link

Choose a reason for hiding this comment

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

You might want to list out the specific imports instead of using a wildcard import


String[] taskDescription = list.getTask(i).getDescription().split(" ");
for (String word : taskDescription) {
if(keyword.equals(word)) {
Copy link

Choose a reason for hiding this comment

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

Minor coding standard violation but there should be a whitespace after 'if'

Merge A-Assertion

include assert statements in java files when required
Code quality fixes on all java files, made method length shorter and added Javadoc comments

Good software engineering practices

Made method length shorter by abstracting out the function into separate methods, and added Javadoc comments for methods without JavaDoc comments

Abstracting out the functions into separate methods is preferable that helps with reading
Documentation for class fields added for better readability
Added javaDoc comments
Added more JavaDoc for documentation and good software engineering practices
Add a feature that allows a user to add a task that needs to be done within a certain period
Trim out trailing white spaces
Add JavaDoc description to ensure better readability and better documentation
Add JavaDoc for setDuke method in MainWindow.java

It allows for better readability and documentation is good software engineering practice
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