Skip to content

[0rbita1] iP#645

Open
0rbita1 wants to merge 41 commits into
nus-cs2103-AY2526S1:masterfrom
0rbita1:master
Open

[0rbita1] iP#645
0rbita1 wants to merge 41 commits into
nus-cs2103-AY2526S1:masterfrom
0rbita1:master

Conversation

@0rbita1

@0rbita1 0rbita1 commented Sep 2, 2025

Copy link
Copy Markdown

0rbita1

Welcome to my iP

It is

  • Text-based
  • Easy to learn
  • Very difficult easy to chat to

You can start by

  1. Downloading the project
  2. Opening the project

public class Main { public static void main(String[] args) { Application.launch(MainApp.class, args); } }

Updated the calculateTotal function to handle null values and modified the user.email validation.

Features:

  • Managing tasks
  • Creating tasks
  • Deleting tasks
  • Marking tasks

Forked from this project

Hope you enjoy 😀

damithc and others added 24 commits July 11, 2024 16:52
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.
Merge add-gradle-support to use gradle

@watermelonisred watermelonisred left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall, i find your class and method names very easy to understand, and your code looks good to me in terms of naming conventions!

Comment thread src/main/java/keeka/Parser.java Outdated
Comment on lines +10 to +12
final static int TASK_CODE_INDEX = 1;
final static int MARKED_STATUS_INDEX = 4;
final static int SUBSTRING_START_INDEX = 7;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice naming of constants

Comment thread src/main/java/keeka/Storage.java Outdated
* @param date The `LocalDateTime` object representing the deadline.
* @param tasks The `ArrayList` to which the new deadline task will be added.
*/
public static void loadDeadline(String description, Boolean isDone, LocalDateTime date, ArrayList<Task> tasks) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps you could update the parameter 'date' to 'datetime' to make it clearer that it has both date and time?

Comment thread src/main/java/keeka/Keeka.java Outdated
ArrayList<String> saveContents = Storage.retrieveSaveContents();

for (int i = 0; i < saveContents.size(); i++) {
String saveContent = saveContents.get(i);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

personally "saveContent" sounds more like a verb to me, but its not a big deal

Comment thread src/main/java/keeka/Ui.java Outdated
public Ui() {
}

public static void printSuccessfulTaskAddition(ArrayList<Task> taskList) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

easy to understand method name

Comment thread src/main/java/keeka/Ui.java Outdated
}

public static void printSuccessfulTaskAddition(ArrayList<Task> taskList) {
addMessageToBuffer("Task successfully added:\n" + taskList.get(taskList.size() - 1) + "\n" + "Task counter: " +

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to distribute the characters across both lines more evenly so the top line doesn't cross the soft character limit?

Comment thread src/main/java/keeka/Interpreter.java Outdated
* @param isDone A boolean indicating whether the task is marked as done.
* @param tasks The ArrayList to which the loaded task will be added.
*/
public static void interpretAndLoadDeadlineSave(String taskContent, Boolean isDone, ArrayList<Task> tasks) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would a less lengthy name, say interpretSavedDeadline be clearer?

- Modified input interpreter to accept update command.
- Update command as follows: "update <<task index number>> <<task field>> <<new value>>".
- Added new functions in parser to accomodate update command functionality.
- Added assertions to all methods in Storage and TaskList
- Assertions involved checking if each parameter is null
- Assertions include assertion messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants