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

[gekhro] iP #319

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

[gekhro] iP #319

wants to merge 41 commits into from

Conversation

gekhro
Copy link

@gekhro gekhro commented Jan 27, 2023

Dukepro

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

DukePro 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 (coming soon)
  • Reminders (coming soon)

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

continue;
}

else if (input.equals("mark")){
Copy link

Choose a reason for hiding this comment

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

Hey! I know you haven't gotten to the code-standard refinement stage yet, but I thought I'd just leave some comments on your code style (its a fast fix, don't worry).

Copy link

Choose a reason for hiding this comment

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

for your conditionals and everything that requires a () bracket, if there is curly braces after it, it would be best to leave a white space before the curly brace. eg.

else if (condition) {
    code...
}

this.isDone = true;
}

public void markAsNotDone(){
Copy link

Choose a reason for hiding this comment

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

I realize you have done this in several other code files, so I guess you could just follow that.

import javax.swing.text.DateFormatter;

public class Deadline extends Task{
private LocalDate by;
Copy link

Choose a reason for hiding this comment

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

Although this code is just a WIP, I would just like to leave a comment: perhaps changing out the private LocalDate "by" with dateBy, or a more descriptive name would be better! I realized that you use isDone and is... for your boolean variables, so that's good, and your other variables should also reflect that level of precise descriptiveness (in camelcase, of course.)

Copy link

Choose a reason for hiding this comment

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

Thanks so much for reading! Hope the (somewhat wordy) comments has been somewhat useful. 😄

Copy link

@WeideTeo WeideTeo left a comment

Choose a reason for hiding this comment

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

Overall, excellent job of the code style. Great !!

public Ui () {
}

public void showWelcome() {
Copy link

Choose a reason for hiding this comment

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

Good usage of camel case !!

private LocalDate due_by;
private String output;

public Deadline(String description, String due_by) throws DukeException{
Copy link

Choose a reason for hiding this comment

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

You might wanna leave a space after the method name

switch(commandinput) {

case "TODO":
return new AddTodo(input);
Copy link

Choose a reason for hiding this comment

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

Good usage of simple expressions rather than complicated one

gekhro and others added 14 commits February 6, 2023 15:28
edited the variable name to follow the java coding standard
# Conflicts:
#	gradle/wrapper/gradle-wrapper.jar
#	gradle/wrapper/gradle-wrapper.properties
#	gradlew
#	gradlew.bat
#	src/main/java/duke/commands/Delete.java
#	src/main/java/duke/commands/Mark.java
#	src/main/java/duke/commands/Unmark.java
#	src/main/java/duke/tasks/Deadline.java
Removed files containing different gradle.build causing error
-utilities/build.gradle
-list/build.gradle
-app/build.gradle
changed build.gradle to add javafx dependencies
implemented checkstyle into gradle build to check for violations
added code to assert that the index will be within range for delete, find and list commands
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.

None yet

3 participants