-
Notifications
You must be signed in to change notification settings - Fork 437
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
[Zeng Yu Ting] iP #227
base: master
Are you sure you want to change the base?
[Zeng Yu Ting] iP #227
Conversation
Inline JavaFX tutorials
Remove references to DukeStub
Change indentation in FXML samples to match AB-3
The OpenJFX plugin expects applications to be modular and bundled with jlink, resulting in fat jars that are not cross-platform. Let's manually include the required dependencies so that shadow can package them properly.
JavaFX tutorial: Support cross-platform JARs
Remove extra '@OverRide' at the start of the code example.
Remove unnecessary override annotation
Let's remove generic tutorials from this repo as they are not specific to this project tempalte
Add A-TextUiTesting
Add A-TextUiTesting test cases
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.
Hi, Jillzyt! After reviewing your PR, I found that your code has no significant JDoc issues and is generally readable! Provided some possible optimizations that could further improve the code's readability – kindly give them some considerations. Otherwise, your Duke looks neat!
* | ||
*/ | ||
public class DukeException extends Exception { | ||
private String errorMesage; |
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 errorMessage
can also be final
?
Rationale: At any point, the code would throw new DukeException(errorMessage)
. Making the attribute(s) final
is not only safe, but also recommended by JDoc as a good practice.
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.
Noted. :) Thank you.
List<Task> filteredList = internalList | ||
.stream() | ||
.filter(task -> task.description.contains(searchString)).collect(Collectors.toList()); |
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 like the usage of Streams
here to filter
relevant tasks!
Noticed that the method means to return UnmodifiableList
. Would like to raise the use of Collectors.toUnmodifiableList()
as a possible minor optimization.
Reference: https://stackoverflow.com/a/53013505
// Message to add | ||
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Find the tasks that contains the words. \n" | ||
+ "Parameters: find WORD\n" + "Example: " + COMMAND_WORD + " 1"; | ||
|
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.
Your code is quite clean in general, but do note that javadocs for all public classes and methods is required.
/** | ||
* Signals that some given data does not fulfill some constraints. | ||
*/ | ||
public class IllegalValueException extends DukeException { |
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 for classes like these that extend off dukeException, we could add additional information about the error itself as compared to having the very generic dukeException error.
This could make the addition of a IllegalValueException have some additional value add.
* Gets the string to be printed for the deadline. | ||
*/ | ||
public String toString() { | ||
DateTimeFormatter dateFormat = DateTimeFormatter.ofPattern("MMM dd yyyy HH:mm"); |
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.
This datetimeformatter could be made into a static method to reduce magic variables
|
||
|
||
/** | ||
* DukeDencoder decodes all the {@code Task} in the {@code toSave} into a list of decodable |
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.
Nice use of pointers to other parts of the code! I did not know this existed. Thanks for showing this
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.
Generally, the code was well documented and well done. Good emphasis on the use of some functionalities of jdocs which I will certainly use in my own code as well. Good job!
Fix test files
Add assertions
Branch A-Assertions
Edit comments and variable names
Merge branch-A-CodeQuality into master
Add update tasks function
Add update tasks function
Update the user interface
Update the user interface
Add credit
Add Ui image
Add a user guide
Add a user guide
Update README.md
Update README.md
Rename README.md to INDEX.md
Rename index.md to README.md
Update README.md
Remove documentation files
Update images file path
Edit customized messages
Edit customized messages
Transform Duke into the Best2103/TBot (Week 4)
Description:
More features are added to Duke. Duke has been transformed into a management platform for tasks. No additional dependencies are required for this change.
Best2103/TBot helps users to keep track of tasks such as todos, deadlines, events. The users can add, delete new tasks and complete tasks. They can also list their tasks to view the existing tasks.
Features added
Fixes # (issue)
None.
Summary of changes
How Has This Been Tested?
Currently, there is only one test which is Storage Test. Set up Junit and you will be able to run the StorageTest file.
Checklist: