- Use GFMD in the PR description
- Review some peer PRs
- Learn from others (optional)
- Add Increments as branches:
A-CheckStyle
,Level-10
,A-Varargs
Mac users: Ensure you have followed the advisory given here.
1 Use GFMD in the PR description
- GitHub Flavored Markdown (and Markdown in general) is useful in many places when using GitHub e.g., issue tracker, PR reviews, writing documentation. The aim of this task is to ensure that you are sufficiently familiar with the GFMD syntax.
- Requirements: Update the description of the iP PR you created earlier (do not add a new comment) so that it contains the following GFMD elements:
- a heading
- a bullet list
- a numbered list
- a fenced code block (with syntax highlighting)
- a task list
- an emoji
- a blockquote
- a hyperlink
- inline code
- some text formatting: bold, italic, strikethrough etc.
If you wish, you may write the PR description to be very similar to the example given above -- as the goal here is to demonstrate your mastery of the GFMD syntax (not ad writing skills).
2 Review some peer PRs
Please wait till Mon, Sep 4th to start this task, to give others a few extra days to create the PR if they haven't done so yet.
This task is worth 2x2=4
participation points.
- Learn how you should review PRs in this task:
Step 1 Note these additional guidelines:
- Read the Best practices for reviewing PRs @SE-EDU/guides. You are expected to follow all of them.
- Make sure you add 'review comments' (not regular comments) as only those are counted for participation. See step 4 in the panel above to find how to add 'review comments'.
- If the PR has received some review comments already, feel free to confirm/complement/question those comments in your review. Also, look for things the previous reviewers may have missed.
- At the end of the review, choose
Comment
(i.e., notApprove
orRequest changes
)
Step 2 Do the first PR review as follows.
- Give comment on coding standard related issues only.
Review comments don't always have to be about problems in the code. Other things you can do:- complement the author on not making a common mistake
- ask questions
- suggest alternatives
- The review allocation is given in the panel below.
- Give comment on coding standard related issues only.
If the student you have been allocated to review has not created a PR (or the PR has a trivial amount of code), you can review the Backup PR to review provided in the allocation table. Failing both, review another PR allocated to another student in your own tutorial but not in your team.
Tip for future reference: GitHub allows you to filter PRs/Issues using various criteria such as author:AuthorUsername
(example -- see the filters
text box in the target page).
Alternatively, you can use PR labels (if any) to filter PRs/Issues.
FAQ: How many comments should I add? Answer: Depends on the code being reviewed but we expect most PRs would warrant at least 4-5 comments. If the PR is huge, you can stop when you think you've put in a fair amount of time on the job (~15 minutes) and added enough comments for the PR author to receive some value.
- Step 3 Do the second PR review as follows.
- Comment on other code quality guidelines (see the section Naming in this textbook chapter) you have learned so far. It's optional to comment on coding standard violations in this PR review.
- The review allocation is given in the panel below.
If the allocated PR is not suitable, use the same strategy as before to find an alternative PR to review.
- Step 4 [When you receive reviews for your own PR] Respond to comments received. You are recommended to (but not obliged to) respond to comments received from peers, especially if the PR reviewer asked you for more info. As mentioned in these guidelines, do not get into arguments with PR reviewers/authors.
3 Learn from others (optional)
- You can use the iP Code Dashboard to view others' iP code, using the
Links → iP Code Dashboard
item in the top navigation menu of this course website.We encourage you to read others’ code and learn from them. If you adopt solutions from others (also encouraged), please follow our reuse policy.
Click on the icon corresponding to a student name to see the code written by that person.
Similarly, click on the icon to see a list of tags (and commits) -- this way, you can find which increments have been done by a particular student.
4 Add Increments as branches: A-CheckStyle
, Level-10
, A-Varargs
- Do each increment as a separate branch, similar to how you did Level 7 before.
Attention Mac users! If you are not using the exact JDK distribution specified by our advisory for Mac users in this page, you are likely to run into problems while doing Level-10
.
Note that you no longer need to keep the text-based UI after adding a GUI. Similarly, there is no need to use the I/O redirection style automated testing anymore (that technique is suited for text UIs only).