-
Notifications
You must be signed in to change notification settings - Fork 435
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
base: master
Are you sure you want to change the base?
[beefsausagee] iP #457
Conversation
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
There was a problem hiding this 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.
src/main/java/Duke.java
Outdated
} | ||
|
||
/** | ||
* Displays a greeting message |
There was a problem hiding this comment.
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.
src/main/java/Duke.java
Outdated
/** | ||
* Displays a greeting message | ||
* | ||
* @param botName Name of the bot |
There was a problem hiding this comment.
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.
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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
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
Added extension C-Sort
…rk, unmark, delete, and find commands
Added Ui.png into docs
There was a problem hiding this 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.
XiaoBai
XiaoBai frees your mind of having to remember things you need to do. It's,
FASTSUPER FAST to useAll you need to do is,
And it is FREE!
Features:
If you are a Java programmer, you can use it to practice Java too. Here's the main method: