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

[Ria Khaitan] iP #328

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

Conversation

riakhaitan
Copy link

@riakhaitan riakhaitan commented Feb 6, 2022

Halloumi ChatBot ^_^

"Your mind is for having ideas, not holding them." -David Allen

The Halloumi ChatBot keeps track of your tasks and progress, all in one place. It's,

  • easy SUPER EASY to use ⏩
  • text-based 📝
  • offline 🌳

If you're a 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);
    }
}

All you need to do is,

  1. Sign up here for free
  2. Complete the demo
  3. Start adding your tasks

Features:

  • Task management
  • Managing deadlines (coming soon)
  • Reminders (coming soon)

Some commands to get you started with Halloumi are:

list
todo <insert task here>
mark 1

Copy link

@rahulprasad01 rahulprasad01 left a comment

Choose a reason for hiding this comment

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

Overall really clean code

@@ -1,10 +1,108 @@
import exceptions.DukeExceptions;

Choose a reason for hiding this comment

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

Should the import statements be ordered differently?

System.out.println("|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|");
}

public static String makeDesc(String[] text, int len) {

Choose a reason for hiding this comment

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

Perhaps a more intuitive variable name here?

}
}

class ToDo extends Task {

Choose a reason for hiding this comment

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

I like how the code has been indented

Copy link

@markbiju markbiju left a comment

Choose a reason for hiding this comment

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

A good effort at following Java coding standards, with appropriate method naming and use of camelCase!

File f = new File("/Users/riakhaitan/iP/ip/data/duke.txt");
f.createNewFile();

boolean directory = f.getParentFile().mkdirs();
Copy link

Choose a reason for hiding this comment

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

Just a suggestion, perhaps you could use a name for this variable that is more boolean-sounding such as isDirectory? Good use of mkdir() here, creating a directory to store data

when = date;
}
public String toString() {
return "[D]" + super.toString() + " (: " +
Copy link

Choose a reason for hiding this comment

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

A good practice would be to place a line break before an operator! Good use of line break to improve readability

String[] textSplit = textSplitOne[0].split(" ");
String fullDesc = makeDesc(textSplit, textSplit.length);
try {
switch (textSplit[0]) {
Copy link

Choose a reason for hiding this comment

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

For case clauses, there is no indentation

System.out.println("You have " + lists.size() + " tasks left now! ^_^");
lineTwo();
break;
case "deadline":
Copy link

Choose a reason for hiding this comment

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

Logical units within a block should be separated by a line, perhaps a space after each case would be ideal!

riakhaitan and others added 11 commits February 13, 2022 19:51
…cies

To implement JavaFX and incorporate gui in our code, we need to add the related dependencies for it.

We add the corresponding dependencies to our build.gradle so we are able to use JavaFX and incorporate gui in our code.

We need to add dependencies to our build.gradle so we can use gradle to build our gui, this is the most efficient way.
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.

3 participants