Week 3 [Mon, Aug 26th] - Tasks

  1. Install IntelliJ IDEA before the lecture
  2. Submit weekly exercises

Project:

  1. Setup Duke project on your computer during/after the lecture
  2. Implement project increments Level-1, Level-2

1 Install IntelliJ IDEA before the lecture

  • See the panel below:

2 Submit weekly exercises

  • As usual, submit weekly programming exercise.

Project

0 Learn about the project

Duke Overview

1 Setup Duke project on your computer during/after the lecture

  1. Fork https://github.com/nus-tic2002-AY2425S1/duke. The relevant textbook topic is given below for your reference.
    Please retain the repo name duke when forking. If you name your fork as something else, our grading scripts will not be able to find your fork.

  1. Clone the fork onto your computer.

  1. Set up the project in your IDE as explained in the README file.

2 Implement Duke increments Level-0, Level-1, Level-2

Keep in mind ...
  • Remember to take note of our plagiarism policies, if you haven't done so already:

  • From this point onward, commit code at important points. Minimally, commit after completing each increment.
    Remember not to commit .class files and any other file that should not be revision controlled.
  • From this point onward, after completing each increment,
    • git tag the commit that completed the increment with the exact increment ID e.g., Level-2, A-TextUiTesting
      Git tags are not the same as Git commit messages.
      %%{init: { 'theme': 'default', 'gitGraph': {'mainBranchName': 'master'}} }%% gitGraph commit id: "..." commit id: "Rename main class" commit id: "Add greeting" tag: "Level-0" commit id: "Add support for echo" commit id: "Fix bug in echo" tag: "Level-1" commit id: "Add support for list" commit id: "Add support for bye"
    • git push the code to your fork
      Git doesn't push tags unless you specifically ask it to. After pushing a tag to your fork, you should be able to see that tag by visiting https://github.com/YOUR_USER_NAME/REPO_NAME/tags e.g., https://github.com/se-edu/addressbook-level3/tags
      If you encounter issues connecting Sourcetree with your GitHub account, refer to this Sourcetree Tutorial.
  • The relevant textbook topics are:

  • Implement the following in the given order.
Duke Level-0: Rename, Greet, Exit

Duke Level-1: Echo

Duke Level-2: Add, List