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

[nicholastan] iP #468

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

[nicholastan] iP #468

wants to merge 38 commits into from

Conversation

nt-nic
Copy link

@nt-nic nt-nic commented Feb 16, 2023

DukeyList

The computer was invented to solve problems that did not exist before - ChatGPT when asked for a computer science quote

DukeyList frees your mind of having to remember things that you need to do. It is:

  • text based
  • easy to use
  • SUPER fast to use

Some features:

  • Managing tasks
  • Managing deadlines
  • Reminders (Coming soon!)

Go get DukeyList soon NOW 👍

Some basic DukeyList commands:

  1. list to view all the tasks
  2. mark to mark a task as done
  3. bye to exit the list

Practice Java as well! Think about how you would build your own DukeyList!

The main method is given below.

public static void main(String[] args) {
        Duke duke = new Duke("DukeySave.txt");
        duke.initiateDukeyList();
    }

@nt-nic nt-nic changed the title DukeyList iP [Nicholas Tan Junkai] iP Feb 17, 2023
@nt-nic nt-nic changed the title [Nicholas Tan Junkai] iP [nicholastan] iP Feb 17, 2023
nt-nic and others added 18 commits February 18, 2023 14:09
# Conflicts:
#	src/main/java/duke/Task.java
#	src/main/java/duke/TaskList.java
The code does not use assertions.

It is difficult identify bugs. The location of compilation errors may
not be explicitly stated by the compiler, and for logical bugs it is not
easy to debug without knowing which variables or methods are bugged.

Let’s add `assert` statements at various points in the code.

An Assertion is a statement that tests assumptions about the code. It
can help the programmer to read the code better, detect any defects.
The assert statement halts the code at the exact point if it is not
fulfilled, allowing the programmer to identify the exact location there
is a bug. This makes the process of debugging easier.
nt-nic and others added 10 commits February 23, 2023 17:31
There is no way to keep track of tasks which involve keeping track of
money owed to someone.

Let’s implement a class Loan which inherits Task, and the methods
associated to the Loan class.

A Loan contains the following fields:
* Name of the task
* Borrower
* Lender
* Amount
* Status

With the Loan class, the user can keep track of loans, including namely
who owes how much money, and to who.

Some of the associated methods include:
* Loan.createLoan() which creates a new Loan based on user input
* Loan.createLoanFromLog() which loads a Loan from a save
This reverts commit 8edff6a.
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.

1 participant