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

[beefsausagee] iP #457

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

Conversation

alvislowyh
Copy link

@alvislowyh alvislowyh commented Feb 5, 2024

XiaoBai

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

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

And it is FREE!

Features:

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

If you are a Java programmer, you can use it to practice Java too. Here's the main method:

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

damithc and others added 6 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
Copy link

@kwuunnn kwuunnn left a comment

Choose a reason for hiding this comment

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

LGTM. Just a few nits to fix.

}

/**
* Displays a greeting message
Copy link

Choose a reason for hiding this comment

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

I think the sentence should end with a fullstop. I noticed the same issue in several other places too.

/**
* Displays a greeting message
*
* @param botName Name of the bot
Copy link

Choose a reason for hiding this comment

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

Likewise, I think each parameter description should end with a fullstop. I noticed the same issue in several other places too.

Copy link

@xuelinglow xuelinglow left a comment

Choose a reason for hiding this comment

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

So far looks pretty good in terms of code quality guidelines.

* @param task Task input
* @param listOfTasks List of all tasks
*/
public static void repeatFunction(Task task, ArrayList<? extends Task> listOfTasks) {

Choose a reason for hiding this comment

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

Perhaps it would be better to use a more descriptive function name to make it more clear what the function does
e.g notifyTaskAdded

alvislowyh and others added 29 commits February 22, 2024 20:01
There are some methods in UI that did not follow the naming standard

Changing the name imporves code quality
This commit introduces assertions to enhance input validation and error handling in the XiaoBai application. Assertions are used throughout the codebase to ensure that critical assumptions about the input data are met, helping to catch potential bugs and improve overall code reliability.

- Assertions have been added to the `getResponse` method in the `XiaoBai` class to check for empty task details in various user commands, including TODO, DEADLINE, EVENT, MARK, UNMARK, DELETE, and FIND.
- When empty task details are detected, assertions throw an AssertionError, providing clear feedback to developers during testing and debugging.
- Additionally, appropriate error handling has been implemented to catch AssertionError and handle it gracefully, preventing unexpected termination of the application.

This enhancement enhances the robustness of the application and contributes to a more stable and reliable user experience. It lays the groundwork for more thorough input validation and error handling strategies in future iterations of the XiaoBai application.
Add assertions to improve input validation and error handling
This commit adds Javadoc comments to all public methods and classes in the project to improve code documentation and readability. Each class and method now has a comprehensive Javadoc comment explaining its purpose, parameters, return values (if applicable), and any exceptions thrown.

The following changes were made:
- Added Javadoc comments to all public methods and classes in the project.
- Updated the comments to follow standard conventions and provide clear explanations of each component's functionality.
- Ensured consistency in commenting style and format throughout the project.
- Reviewed and refined existing comments to ensure accuracy and completeness.

These Javadoc comments will enhance code maintainability and facilitate better understanding for developers working on the project. They serve as comprehensive documentation for the project's API, making it easier for users to utilize and extend the functionality of the application.
Add Javadoc comments to all classes in the project
Copy link

@minghowC minghowC left a comment

Choose a reason for hiding this comment

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

Well implemented. LGTM, just one nit to fix. Perhaps magic number could be better explained with named constants in the case of line 32?
Pardon my PR at this juncture of time.

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.

5 participants