[iapetusbob] iP#385
Conversation
| addTodo(new Todo(taskName)); | ||
| System.out.println(askForCmd); | ||
| takeCmd(); | ||
| } else if (cmd[0].equals("deadline")){ |
There was a problem hiding this comment.
Might want to split commands into seperate functions
| } | ||
| } | ||
|
|
||
| public class TaskNotInListException extends Exception { |
There was a problem hiding this comment.
Considering putting the exceptions into different class files
|
|
||
| public void mark(String markCmd, int i) throws TaskNotInListException, TaskAlrMarkException { | ||
| /** | ||
| * Marks the i-1 th index Task as done if not done and vice versa. |
There was a problem hiding this comment.
Beautiful comments! Really helps improve the readability of your code!
elvern18
left a comment
There was a problem hiding this comment.
Logic of code LGTM. However, much can be done to make the code cleaner and increase readability. ATB!
| @@ -1,10 +1,188 @@ | |||
| import java.util.Scanner; | |||
| import java.util.Arrays; | |||
| import DukeHelpfulCode.*; | |||
There was a problem hiding this comment.
Perhaps you can ensure import classes are stated explicitly to meet coding standards.
Eg. import DukeHelpfulCode.Task;
| } | ||
|
|
||
| private static void takeCmd() { | ||
| /** |
There was a problem hiding this comment.
detailed JavaDoc comment that tells others what each command does. However, JavaDoc comment should be outside and above the function to meet coding standards.
Is it possible to separate the code into smaller functions that will be called? This makes that code looks cleaner.
| @@ -1,10 +1,188 @@ | |||
| import java.util.Scanner; | |||
| import java.util.Arrays; | |||
| import DukeHelpfulCode.*; | |||
There was a problem hiding this comment.
Package name should also be in all lower case to meet coding standards.
| @@ -0,0 +1,59 @@ | |||
| package DukeHelpfulCode; | |||
|
|
|||
| public class Task { | |||
There was a problem hiding this comment.
JavaDoc for classes should also be outside and above the class itself.
Add Gradle support
add-gradle-support
A-Checkstyle
…to branch-Level-10
branch-Level-10
DOOK
“My unmatched perspicacity, coupled with sheer indefatigability, makes me a feared opponent in any realm of human endeavor.” – Andrew Tate (source)
DOOK 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,
download it from here.
double-click it.
add your tasks.
let it manage your tasks for you 😉
And it is FREE!
Features:
Managing tasks
Managing deadlines (coming soon)
Reminders (coming soon)
If you Java programmer, you can use it to practice Java too. Here's the main method: