- Add Increment as a branch:
Level-5
- Add Increment:
A-Packages
1 Add Increment as a branch: Level-5
- Use git branches in your work, as explained below:
- Do the increment Level-5 as a separate branch named
branch-Level-5
. You are recommended to have multiple commits in that branch. - After the increment is ready, merge the
branch-Level-5
back on tomaster
, without a fast-forward so that git creates a separate commit for the merge.git tag
that merge commit asLevel-5
. - Push the branch to your fork so that the bot can detect it. As before, push the tag as well.
- Advanced git users: do not delete the branch after merging.
- Do the increment Level-5 as a separate branch named
Level-5
: Handle Errors
Level 5. Handle Errors
Teach Duke to deal with errors such as incorrect inputs entered by the user.
Example:
todo
____________________________________________________________
☹ OOPS!!! The description of a todo cannot be empty.
____________________________________________________________
blah
____________________________________________________________
☹ OOPS!!! I'm sorry, but I don't know what that means :-(
____________________________________________________________
When implementing this feature, you are also recommended to implement the following extension:
- Minimal: handle at least the two types of errors shown in the example above.
- Stretch goal: handle all possible errors in the current version. As you evolve Duke, continue to handle errors related to the new features added.
2 Add Increment: A-Packages
- Recommended: if you are new to git, do this as a separate branch too (for additional practice), similar to how you did
Level-5
(branch namebranch-A-Packages
).