[Singh Abdullah Alexander] iP - #519
Conversation
Kennethsim2000
left a comment
There was a problem hiding this comment.
Ultimately, good job on the code!
| public class Deadline extends Task { | ||
| private String description; | ||
| private LocalDate date; | ||
| private boolean isDone; |
| public static void main(String[] args) { | ||
| System.out.println("Hello! I'm Chacha\n" + "What can I do for you?"); | ||
| Scanner input = new Scanner(System.in); | ||
| String s = input.nextLine(); |
There was a problem hiding this comment.
Maybe can name s differently? To a clearer variable
| System.out.println("Hello! I'm Chacha\n" + "What can I do for you?"); | ||
| Scanner input = new Scanner(System.in); | ||
| String s = input.nextLine(); | ||
| ArrayList<Task> taskList = new ArrayList<Task>(); |
There was a problem hiding this comment.
Good that the variable names are in camel case
add storage logic fix parser
| @@ -0,0 +1,102 @@ | |||
| package chacha; | |||
|
|
|||
| import java.io.BufferedWriter; | |||
There was a problem hiding this comment.
Maybe you should consider adding spaces in between import statements from different packages to improve readability.
| dateTime = LocalDateTime.parse(date, formatter); | ||
| } | ||
| Task task = new Task(); | ||
| switch (type) { |
| //load task objects into array | ||
| System.out.println(s.nextLine()); | ||
| } | ||
| } |
There was a problem hiding this comment.
Overall code looks clean and should have no problem finishing up the ip
| Scanner input = new Scanner(System.in); | ||
| String s = input.nextLine(); | ||
| ArrayList<String> list = new ArrayList<String>(); | ||
| ArrayList<Task> taskList = new ArrayList<Task>(); |
There was a problem hiding this comment.
Can consider making taskList a private static final field in the class
| t.getDescription()); | ||
| } | ||
|
|
||
| } else if (s.contains("unmark")) { |
There was a problem hiding this comment.
Can consider using s.startsWith function to check if the task type is indeed the first input
# Conflicts: # src/main/java/chacha/TaskList.java # src/main/java/chacha/commands/ExitCommand.java # src/main/java/chacha/commands/ListCommand.java # src/main/java/chacha/tasks/Deadline.java # src/main/java/chacha/tasks/Todo.java
# Conflicts: # src/main/java/chacha/Ui.java
add assert statements
fix code quality
Sort command is null safe to handle todo tasks. A sort is necessary for users to sort tasks chronologically. Using a custom comparator class for tasks is preferable because other sorting parameters such as description can be added later. Refer to this S/O discussion on dealing with multiple comparators as a chain https://codereview.stackexchange.com/questions/229497/handle-null-in-comparator-class
Add sort command
Find command finds returns all tasks with any of the keywords. A find command which accepts multiple arguments is more user-friendly for users who wish to search for multiple types of tasks at once.
Find command: add varargs to pass multiple keywords
Edit the fxml view files to update styling for GUI. Styling the GUI makes the chatbot more user friendly.
Modify UI responses and error responses to create personality for Chacha. Adding a personality improves user-friendliness of Chacha's interactions with users.
Github page as documentation for user. By adding a website, users can easily refer to usage of the product.
-Fix arrowhead in Chacha getResponse
-Fix Parser SLAP

Chacha
Chacha helps you plan an track upcoming tasks. It's,
FASTSUPER FAST to useAll you need to do is,
And it is FREE!
Features:
If you are familiar with Java, you can use it to practice too. Here's the
mainmethod: