-
Notifications
You must be signed in to change notification settings - Fork 590
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
[seandias] iP #627
base: master
Are you sure you want to change the base?
[seandias] iP #627
Conversation
In build.gradle, the dependencies on distZip and/or distTar causes the shadowJar task to generate a second JAR file for which the mainClass.set("seedu.duke.Duke") does not take effect. Hence, this additional JAR file cannot be run. For this product, there is no need to generate a second JAR file to begin with. Let's remove this dependency from the build.gradle to prevent the shadowJar task from generating the extra JAR file.
Update Level
More-OOP
# Conflicts: # src/main/java/skd/CommandType.java # src/main/java/skd/Parser.java # src/main/java/skd/SKD.java # src/main/java/skd/ToStore.java # src/main/java/skd/Ui.java # src/main/java/task/Deadline.java # src/main/java/task/Event.java # src/main/java/task/Task.java # src/main/java/task/TaskType.java # src/main/java/task/ToDo.java
# Conflicts: # src/main/java/skd/SKD.java # src/main/java/skd/command/CommandType.java # src/main/java/skd/command/Parser.java # src/main/java/task/Deadline.java # src/main/java/task/Event.java # src/main/java/task/Task.java # src/main/java/task/TaskType.java # src/main/java/task/ToDo.java
# Conflicts: # src/main/java/skd/SKD.java # src/main/java/skd/command/CommandType.java # src/main/java/skd/command/Parser.java # src/main/java/task/Deadline.java # src/main/java/task/Event.java # src/main/java/task/Task.java # src/main/java/task/TaskType.java # src/main/java/task/ToDo.java
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.
It is very good overall! There is no violation in naming convention!
import skd.command.Parser; | ||
import skd.storage.ToStore; | ||
import skd.ui.Ui; | ||
import task.Task; |
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 how you organise the imports by separating different kinds of them
public void run() { | ||
ui.showWelcome(); | ||
Scanner scanner = new Scanner(System.in); | ||
boolean isRunning = true; |
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 how you name the boolean variable
/** | ||
* Represents the different types of commands that the parser can interpret from user input. | ||
*/ | ||
public enum CommandType { |
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 how you used enum here
|| eventParts[1].trim().isEmpty() | ||
|| eventParts[2].trim().isEmpty()) { |
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 how you make an extremely long line shorter by dividing them into 3 parts
* | ||
* @param taskCount The current number of tasks in the list. | ||
*/ | ||
public void printTaskRemovedMessage(int taskCount) { |
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 how you name the method to explain what it does
package skd.command; | ||
|
||
import java.util.List; | ||
|
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.
The separation between different groups of import looks good to me.
*/ | ||
public class Deadline extends Task { | ||
private static final DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"); | ||
private static final DateTimeFormatter OUTPUT_FORMATTER = 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.
I like how those final fields are represented.
/** | ||
* Represents a To-Do task, which is a basic task with only a description and no time constraints. | ||
*/ | ||
public class ToDo extends Task { |
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 your explanation about this class
* of the user's task list between sessions. | ||
*/ | ||
public class SkD { | ||
private ToStore storage; |
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 how you name this variable
*/ | ||
public abstract class Task { | ||
protected String description; | ||
protected boolean isDone; |
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 how you name the boolean variable
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 there is no violation of coding standard
This reverts commit 1329973.
-It needs to have a JavaDoc comment to pass. -I added a JavaDoc comment for it. -Now with the comment it passes checkstyle conditions.
-It needs to have a JavaDoc comment to pass. -I added a JavaDoc comment for it. -Now with the comment it passes checkstyle conditions.
This reverts commit fc139ed.
This reverts commit 58ce543.
Allows for code to be tested and easier identification of error location. Assertions added in to check storage. Nne of the main checkpoints.
A- UserGuide
* 'master' of https://github.com/seandias/ip: A- UserGuide
iP Project: Code Refactoring and Javadoc Update
This pull request includes significant improvements to the code structure and documentation. Below are the details of the changes made:
Key Changes Implemented
Parser.java
ToStore.java
Deadline
,Task
, andToDo
.Detailed Steps Performed
Parser.java
class to fix operator wrapping and indentation issues.CommandType
,Event
,Task
,Deadline
, andToDo
.Git-Standard
branch intomaster
.Code Example:
Parser.java
Here is an updated snippet from the
Parser.java
class, showing improved indentation and operator wrapping:Task List
Parser.java
for better readability.documentation
branch.For more information, check out the Java Coding Standards.