-
Notifications
You must be signed in to change notification settings - Fork 315
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
[Francis Low] Duke Increments #12
base: master
Are you sure you want to change the base?
Conversation
* branch-A-JavaJX: Add JavaFx GUI Add JavaFx build
# Conflicts: # build.gradle
* branch-A-Checkstyle: Add checkstyle build # Conflicts: # build.gradle
Add assertions
* 'master' of https://github.com/francislow/duke: Add assertions
* 'master' of https://github.com/francislow/duke: Improve code quality
*/ | ||
|
||
public class Storage { | ||
private static final String filePath = "data/duke.txt"; |
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.
constant name should be capitalised
* @param i Index of the task to be returned | ||
* @return Index i of task in list | ||
*/ | ||
public Task get(int i) { |
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.
Naming can be improved. What are you trying to get?
public String getStartingMessage(TaskList tasks) { | ||
String message = "Hello! I'm Duke\nWhat can I do for you?\n"; | ||
if (tasks.size() == 0) { | ||
message += "You do not have any stored tasks\n"; |
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.
avoid using magic variables
import duke.TaskList; | ||
|
||
public abstract class Command { | ||
protected String[] parts; |
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.
what this "parts" refer to? can be clearer.
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.
-can implement with more oop
-use SLAP
-avoid using magic values
-naming
Change file mode on `gradle` to be executable (nus-cs2103-AY1920S1#9)
first pull request