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

[Song Bingxi] iP #581

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

Conversation

Propene-Dan
Copy link

@Propene-Dan Propene-Dan commented Sep 9, 2023

Veneto

“Your mind is for having ideas, not holding them.” – David Allen source

Veneto 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,

  1. download it from here.
  2. double-click it.
  3. add your tasks.
  4. let it manage your tasks for you 😉

And it is FREE!

Features:

  • Managing tasks
  • Managing deadlines
  • 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);
    }
}

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.

Looks good to me except for some parts

  1. everything should be written in English!
  2. some parts could be extracted out into Ui, Parser classes
  3. do consider adding a description for your PR!

public class Dan {

private final static String greets = "\nDan: \n";
private static MyList tasks = new MyList(100);

Choose a reason for hiding this comment

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

perhaps a class name like TaskList would be more intuitive than MyList?

System.out.println(
greets +
" 好啦,帮你擦掉了一条任务哦:\n " + removedTask +
"\n 现在还剩下" + tasks.size() + "项任务哦!\n"

Choose a reason for hiding this comment

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

only english is recommended for coding!

import java.util.Arrays;
import java.util.Scanner;

enum TASK_TYPE {TODO, DEADLINE, EVENT}

Choose a reason for hiding this comment

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

Good job on setting your ToDos as enums!

command = texts[0].toLowerCase();
switch (command) {
case "bye":
break a;

Choose a reason for hiding this comment

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

perhaps it would be better if you can extract these 'instructions' out to a Ui class

try {
text = new Scanner(System.in).nextLine();
texts = text.split(" ");
command = texts[0].toLowerCase();

Choose a reason for hiding this comment

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

can consider extracting the commands to a Parser or Command class

Copy link

@starrylight99 starrylight99 left a comment

Choose a reason for hiding this comment

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

pokemon exception, try to be more specific in catching your exceptions :)

Propene-Dan and others added 30 commits September 28, 2023 22:13
renaming filePath to storagePath in Veneto.
added markTask() and unmarkTask() to avoid deep nesting and
improved readability
added EXIT_SUFFIX to show operated command is ExitCommand
added INCORRECT_ERROR to show unidentified error
modifed COMMAND and make it looks better

added three methods to improve readability

added showOperationError() to deal with VenetoOperationException
added showStorageError() to deal with VenetoStorageException
added showInvalidError() to deal with unexpected exceptions
merging A-codequality to master
# Conflicts:
#	src/main/java/veneto/Veneto.java
#	src/main/java/veneto/ui/Ui.java

Conflicts resolved
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.

7 participants