Skip to content
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

[Chen-Kuei] iP #577

Open
wants to merge 58 commits into
base: master
Choose a base branch
from
Open

Conversation

Chen-Kuei
Copy link

@Chen-Kuei Chen-Kuei commented Sep 8, 2023

Hi! I'm BiuBiu :D

Biu!

BiuBiu frees your mind of having to remember things you need to do. It's,

  1. text-based
  2. easy to learn
  3. FAST SUPER FAST to use

All you need to do is,

  • download it from HERE.
  • double-click on 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:

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

Chen-Kuei added 2 commits September 9, 2023 22:44
# Conflicts:
#	src/main/java/duke/Deadline.java
#	src/main/java/duke/Duke.java
#	src/main/java/duke/Event.java
#	src/main/java/duke/Parser.java
#	src/main/java/duke/Storage.java
#	src/main/java/duke/Task.java
#	src/main/java/duke/TaskList.java
#	src/main/java/duke/Todo.java
#	src/main/java/duke/Ui.java
Copy link

@zacwong2151 zacwong2151 left a comment

Choose a reason for hiding this comment

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

LGTM! Here are a few recommendations

  1. add javadocs!
  2. idk, great job on this!

docs/duke.txt Outdated
Comment on lines 1 to 3
TODO | read book
DEADLINE | project | 2022-10-10
EVENT | meet | 2023-06-12 1400 | 2023-06-12 1600

Choose a reason for hiding this comment

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

correct me if I'm wrong, but I believe that this file should be added to your .gitignore file

Comment on lines 29 to 30
String taskTime1 = (taskData.length > 2) ? taskData[2] : "";
String taskTime2 = (taskData.length > 3) ? taskData[3] : "";

Choose a reason for hiding this comment

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

not very sure what these two task times represent? some commented code would be appreciated

storage.saveTasks(tasks);
break;
case "unmark":
int notDoneTaskIndex = Integer.parseInt(parts[1]) - 1;

Choose a reason for hiding this comment

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

great job on writing a clear variable name!

Comment on lines +11 to +12
private LocalDateTime startTime;
private LocalDateTime endTime;

Choose a reason for hiding this comment

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

nice to see that you went beyond what was asked in the iP and made Event have LocalDateTime fields as well. However, this causes some user experience problems, because now in order to enter a Event task you have to write a whole big chunk of text 😬

Copy link

@hcs1203 hcs1203 left a comment

Choose a reason for hiding this comment

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

Well done! Good and clear code with accurate descriptions and good naming mechanisms. Can remove parts of code that make it look like a draft

// saveTask();
// }
// }
//}
Copy link

Choose a reason for hiding this comment

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

Remove commented code. As long as this is a previous version, it will be saved in version control, or store in a separate txt file.

TODO | read book
DEADLINE | project | 2022-10-10
EVENT | meeting | 2023-06-12 1400 | 2023-06-12 1800
*/
Copy link

Choose a reason for hiding this comment

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

State todo on top, delete when done

Copy link

@adammangzijun adammangzijun left a comment

Choose a reason for hiding this comment

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

Overall a well done and concise piece of code. Good job! 😄

String[] commandParts = userCommand.split(" ", 2);
String taskType = commandParts[0].toLowerCase();

switch (taskType) {

Choose a reason for hiding this comment

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

Cases should be in the same indentation as the switch keyword.

* @return The parsed deadline date as a LocalDate object, or null if parsing fails.
*/
private LocalDate parseDeadline(String deadlineString) {

Choose a reason for hiding this comment

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

I'm not sure if this is an accident but there should be consistency in whether you separate your block statements with 1 line spacing or without.

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.

6 participants