iP (Individual Project): OverviewiP: Week 3


iP: Week 2

  1. Learn about the project
  2. Set up prerequisites
  3. Set up the project on your computer
  4. Add Increments while committing frequently: Level-0, Level-1, Level-2, Level-3, Level-4, Level-5, Level-6, A-Enums Fri, Aug 21st 1600

If you encounter any problem while doing the project, please post in the forum so that we can take the necessary action. We did significant changes to the individual project (iP) and the team project (tP) this semester. Hence, teething issues are a possibility.

We discourage you from doing project tasks allocated to future weeks, although it is fine to stay ahead of the schedule a bit (but no more than a week ahead).
Reasons: To help you gain and better simulate real projects, we want the project work to be over a longer period, rather than done as a short burst.

Reminder: As stated in the iP grading criteria, some increments need to be done each week. Clumping all the iP work into a short burst will not earn you full marks.

Please follow instructions closely. Any deviations can cause our grading scripts to miss your work (and result in you not getting credit for it).

Deadline:

Note the typical deadline for weekly project tasks:

As stated above, you have until the weekly briefing at the end of this week (i.e., Fri, Aug 21st 1600) to finish this week's iP tasks, but if you fail to do so, we won't penalize you if you can catch up within one more week after that deadline.

1 Learn about the project

  • Read the following two sections, if you haven't done so already:

Admin iP - Overview


Admin iP - Grading


2 Set up prerequisites

  • Ensure you have followed the Preparation sections of the following course tools:

Admin Programming Language


3 Set up the project on your computer

Read through this week's topics before starting the project.
If you encounter technical problems while doing the iP, follow the guidelines given below:

Admin Appendix D: Getting Help


Your GitHub username :  GitHub Avatar
Note: Type your GitHub username in the blank above so that we can customize sample commands to fit you.

  1. Fork https://github.com/NUS-CS2103-AY2627-S1/ip, while noting the points below:
    Keep the fork name as ip or else our grading scripts will not be able to detect it. You can change the fork name to something else after the semester (and the grading) is over e.g., after receiving your grade for the course.
    Keep the default branch name as master. While Git-Mastery uses main as the default branch name, iP and tP use master. As both these are used widely in the industry, it is good for you to be comfortable using both.
    Keep the source location as [project root]/src. Our grading scripts look for code in this folder.
    Uncheck the [ ] Copy the master branch only option so that you get a copy of the full repo.
  2. Enable the issue tracker of your fork (Go to Settings, scroll to the Features section, and select the Issues checkbox). Reason: At times we post feedback on your issue tracker.
    If the issue tracker is enabled, you should be able to visit the following URL: https://github.com/{your_user_name}/ip/issues/new
    e.g., https://github.com/[[username: JohnDoe]]/ip/issues/new
  3. Clone the fork onto your computer.
    Avoid putting Git-controlled files inside cloud-synced (e.g., OneDrive, Dropbox) folders. Reason: Multiple tools trying to detect/sync changes in the same folder can cause conflicts and unexpected behavior.
    If you want to access project files from multiple computers, use Git to do that (rather than cloud-syncing tools).
  4. Set up the project in your IDE as explained in the README file, if you plan to use an IDE for the project.
    Not willing to lose Vim power? If you are worried about losing access to powerful Vim features when using an IDE for the project, note that most IDEs have a Vim plugin (e.g., IdeaVim plugin) for using Vim features within the IDE. In other words, it is possible to access both IDE features and Vim features at the same time!
  5. Run Duke.java to verify that your project setup works.

4 Add Increments while committing frequently: Level-0, Level-1, Level-2, Level-3, Level-4, Level-5, Level-6, A-Enums Fri, Aug 21st 1600

Implement the below in the given order.

Keep in mind ...
  • 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-Classes
      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/[[username: JohnDoe]]/ip/tags
      If you encounter issues connecting Sourcetree with your GitHub account, refer to this Sourcetree Tutorial.
  • The relevant textbook topics are:
  • Be familiar with how this course expects to use AI tools:

FAQ Wait. So, do we hand-code the iP or use the prompts given?
A: It's your decision, as given in the panel above. If you are not sure, you can start with level AI-2 of AI use) and move to higher levels only when you feel it is justified.

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

Duke Level-0: Rename, Greet, Exit

Duke Level-1: Echo

Duke Level-2: Add, List

Duke Level-3: Mark as Done

Duke Level-4: ToDos, Events, Deadlines

Duke Level-5: Handle Errors

Duke Level-6: Delete

Duke A-Enums: Use Enums if-applicable

FAQ about iP increments

FAQ How are the iP git tags used in grading?


FAQ What if I discovered a bug after I finished an increment?


FAQ I did multiple increments in the same commit. How to fix?


FAQ The requirements of an increment scheduled for this week are already satisfied by the work I did in an earlier week. What now?


FAQ My iP increments are not detected by the dashboard because I forgot to push my tags earlier. What now?


FAQ Can the iP dashboard be updated more frequently?


FAQ If I do optional increments, do I get more marks?


FAQ Oh no! I used the wrong tag/branch name.


FAQ I forked the iP repo from a previous semester. How to fix?



iP (Individual Project): OverviewiP: Week 3