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

[Rena] iP #458

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

[Rena] iP #458

wants to merge 40 commits into from

Conversation

Chiarena
Copy link

@Chiarena Chiarena commented Feb 5, 2024

Duke

"The key is not to prioritize whats on your schedule, but to schedule your priorities." – Stephen Covey (source)

Duke helps you record your tasks and makes it easier for you to manage them.

  • Fast
  • Easy
  • Fun

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:

  • Adding, deleting, marking tasks
  • Manage todo, deadlines and events
  • View list of tasks and find tasks

If you are a Java programmer, you can use it to practice Java too. Here's tje main method:

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

damithc and others added 12 commits January 7, 2024 18:33
Let's tweak the docs/README.md (which is used as the user guide)
to fit Duke better. Specifically,

1. mention product name in the title
2. mention adding a product screenshot and a product intro
3. tweak the flow to describe feature-by-feature
Darkarche3

This comment was marked as off-topic.

Copy link

@NewtonKoh NewtonKoh left a comment

Choose a reason for hiding this comment

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

LGTM. Small nits only

current.unmark();
System.out.println(printMark(current));
}else{

Choose a reason for hiding this comment

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

I think you may have forgotten to add a space before and after the 'else' here.

Copy link

@cocoanautz cocoanautz left a comment

Choose a reason for hiding this comment

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

Just some nits that require attention, mainly related to coding standards and naming.

Choose a reason for hiding this comment

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

Could probably store the lines as a constant value to make the code easier to change.

"____________________________________________________________\n";
}

public static ArrayList<Task> delete(ArrayList<Task> a, int count) {

Choose a reason for hiding this comment

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

The method name could be changed to explain more about what this method is deleting.

Scanner input = new Scanner(System.in);
System.out.println("Enter Message");

final int ArraySize = 100;

Choose a reason for hiding this comment

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

Constants should be in screaming_snake_case.

String task = getTask(message);
String[] parts = time.split("by");
// tasks[counter] = new Deadline(task, parts[1]);
tasks.add(new Deadline(task, parts[1]) );

Choose a reason for hiding this comment

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

Suggested change
tasks.add(new Deadline(task, parts[1]) );
tasks.add(new Deadline(task, parts[1]));

}
}

public static String added(Task task, int count) {

Choose a reason for hiding this comment

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

Suggested change
public static String added(Task task, int count) {
public static String printAdded(Task task, int count) {

Methods should have verbs as names.

Copy link

@HusseinSafwan02 HusseinSafwan02 left a comment

Choose a reason for hiding this comment

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

Some syntax issues to fix, as well as naming conventions, but well done so far!

String status = " ";
if(task instanceof Todo) {
symbol = "T";
}else if(task instanceof Deadline) {

Choose a reason for hiding this comment

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

could insert a space between } and else if

if (message.startsWith("todo")) {
String[] parts = message.split(" ", 2);
String task = parts[1];
// tasks[counter] = new Todo(task);

Choose a reason for hiding this comment

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

consider removing these comments once code is finalised :)

Chiarena and others added 14 commits February 26, 2024 12:15
# Conflicts: Conflicts between level-9 and master branches
#	src/main/java/Duke/Duke.java
#	src/main/java/actions/Parser.java
#	src/main/java/actions/TaskList.java
Introduced assertions in the Parser class for handle methods to validate assumptions about method inputs.

This enhances debugging and code reliability during development.
Arrow head code is reduced

These changes enhance maintainability and readability of the code
Add critical assertions across to the parser class
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