iP:
Level-4
, A-TextUiTesting
, A-CodeQuality
tP:
master
branch of your fork to the master
branch of the upstream repo (https://github.com/nus-cs2113-AY2021S2/ip)[{Your name}] iP
e.g., [John Doe] iP
If you are reluctant to give full name, you may give the first half of your name only.Textbook Git & GitHub → Creating PRs
Suppose you want to propose some changes to a GitHub repo (e.g., samplerepo-pr-practice) as a
A pull request (PR for short) is a mechanism for contributing code to a remote repo, i.e., "I'm requesting you to pull my proposed changes to your repo". For this to work, the two repos must have a shared history. The most common case is sending PRs from a fork to its upstream repo is a repo you forked fromupstream repo.
1. Fork the repo onto your GitHub account.
2. Clone it onto your computer.
3. Commit your changes e.g., add a new file with some contents and commit it.
master
branchadd-intro
(remember to switch to the master
branch before creating a new branch) and add your commit to it.4. Push the branch you updated (i.e., master
branch or the new branch) to your fork, as explained
Here's how to push a branch to a remote repo:
Here's how to push a branch named add-intro
to your own fork of a repo named samplerepo-pr-practice
:
Normally: git push {remote repository} {branch}
. Examples:
git push origin master
pushes the master
branch to the repo named origin
(i.e., the repo you cloned from)git push upstream-repo add-intro
pushes the add-intro
branch to the repo named upstream-repo
If pushing a branch you created locally to the remote for the first time, add the -u
flag to get the local branch to track the new upstream branch:
e.g., git push -u origin add-intro
See git-scm.com/docs/git-push for details of the push
command.
5. Initiate the PR creation:
Go to your fork.
Click on the Pull requests tab followed by the New pull request button. This will bring you to the 'Comparing changes' page.
Set the appropriate target repo and the branch that should receive your PR, using the base repository
and base
dropdowns. e.g.,
base repository: se-edu/samplerepo-pr-practice base: master
Normally, the default value shown in the dropdown is what you want but in case your fork has e.g., the repo you forked from is also a fork of a another repo, which means both of those are considered upstream repos of your forkmultiple upstream repos, the default may not be what you want.
Indicate which repo:branch contains your proposed code, using the head repository
and compare
dropdowns. e.g.,
head repository: myrepo/samplerepo-pr-practice compare: master
6. Verify the proposed code: Verify that the diff view in the page shows the exact change you intend to propose. If it doesn't, commit the new code and push to the branchupdate the branch as necessary.
7. Submit the PR:
Click the Create pull request button.
Fill in the PR name and description e.g.,
Name: Add an introduction to the README.md
Description:
Add some paragraph to the README.md to explain ...
Also add a heading ...
If you want to indicate that the PR you are about to create is 'still work in progress, not yet ready', click on the dropdown arrow in the Create pull request button and choose Create draft pull request
option.
Click the Create pull request button to create the PR.
Go to the receiving repo to verify that your PR appears there in the Pull requests
tab.
The next step of the PR life cycle is the PR review. The members of the repo that received your PR can now review your proposed changes.
You can update the PR along the way too. Suppose PR reviewers suggested a certain improvement to your proposed code. To update your PR as per the suggestion, you can simply modify the code in your local repo, commit the updated code to the same master
branch, and push to your fork as you did earlier. The PR will auto-update accordingly.
Sending PRs using the master
branch is less common than sending PRs using separate branches. For example, suppose you wanted to propose two bug fixes that are not related to each other. In that case, it is more appropriate to send two separate PRs so that each fix can be reviewed, refined, and merged independently. But if you send PRs using the master
branch only, both fixes (and any other change you do in the master
branch) will appear in the PRs you create from it.
To create another PR while the current PR is still under review, create a new branch (remember to switch back to the master
branch first), add your new proposed change in that branch, and create a new PR following the steps given above.
It is possible to create PRs within the same repo e.g., you can create a PR from branch feature-x
to the master
branch, within the same repo. Doing so will allow the code to be reviewed by other developers (using PR review mechanism) before it is merged.
Resources
The PR will update automatically to reflect your latest code every time you push code to your fork. As a result, it provides a convenient way for us to access the current state of all your iP code from one location.
Pull Requests is a mechanism for offering code to a repository e.g., a bug fix or a new feature. PRs allow developers to review, discuss, and refine proposed code changes before incorporating (i.e., merging) the new code to the repository.
Resources:
Level-4
, A-TextUiTesting
, A-CodeQuality
Level-4
: ToDo, Event, Deadline Add support for tracking three types of tasks:
Example:
todo borrow book
____________________________________________________________
Got it. I've added this task:
[T][ ] borrow book
Now you have 5 tasks in the list.
____________________________________________________________
list
____________________________________________________________
Here are the tasks in your list:
1.[T][X] read book
2.[D][ ] return book (by: June 6th)
3.[E][ ] project meeting (at: Aug 6th 2-4pm)
4.[T][X] join sports club
5.[T][ ] borrow book
____________________________________________________________
deadline return book /by Sunday
____________________________________________________________
Got it. I've added this task:
[D][ ] return book (by: Sunday)
Now you have 6 tasks in the list.
____________________________________________________________
event project meeting /at Mon 2-4pm
____________________________________________________________
Got it. I've added this task:
[E][ ] project meeting (at: Mon 2-4pm)
Now you have 7 tasks in the list.
____________________________________________________________
At this point, dates/times can be treated as strings; there is no need to convert them to actual dates/times.
Example:
deadline do homework /by no idea :-p
____________________________________________________________
Got it. I've added this task:
[D][ ] do homework (by: no idea :-p)
Now you have 6 tasks in the list.
____________________________________________________________
When implementing this feature, you are also recommended to implement the following extension:
Extension: A-Inheritance
As there are multiple types of tasks that have some similarity between them, you can implement classes Todo
, Deadline
and Event
classes to inherit from a Task
class.
Furthermore, use polymorphism to store all tasks in a data structure containing Task
objects e.g., Task[100]
.
Partial solution
public class Deadline extends Task {
protected String by;
public Deadline(String description, String by) {
super(description);
this.by = by;
}
@Override
public String toString() {
return "[D]" + super.toString() + " (by: " + by + ")";
}
}
Task[] tasks = new Task[100];
task[0] = new Deadline("return book", "Monday");
A-TextUiTesting
: Automated Text UI Testing optionalUse the input/output redirection technique to semi-automate the testing of Duke.
Notes:
text-ui-test
folder).A-CodeQuality
: Improve Code Quality Textbook Git & GitHub → Reviewing PRs
The PR review stage is a dialog between the PR author and members of the repo that received the PR, in order to refine and eventually merge the PR.
Given below are some steps you can follow when reviewing a PR.
1. Locate the PR:
2. Read the PR description. It might contain information relevant to reviewing the PR.
3. Click on the Files changed tab to see the diff view.
4. Add review comments:
5. Submit the review:
Overall, I found your code easy to read for the most part except a few places
where the nesting was too deep. I noted a few minor coding standard violations
too. Some of the classes are getting quite long. Consider splitting into smaller
classes if that makes sense.
LGTM
is often used in such overall comments, to indicate Looks good to merge
.nit
is another such term, used to indicate minor flaws e.g., LGTM, almost. Just a few nits to fix.
.Approve
, Comment
, or Request changes
option as appropriate and click on the Submit review button.This task is worth 2x2=4
participtaion points.
Textbook Git & GitHub → Reviewing PRs
The PR review stage is a dialog between the PR author and members of the repo that received the PR, in order to refine and eventually merge the PR.
Given below are some steps you can follow when reviewing a PR.
1. Locate the PR:
2. Read the PR description. It might contain information relevant to reviewing the PR.
3. Click on the Files changed tab to see the diff view.
4. Add review comments:
5. Submit the review:
Overall, I found your code easy to read for the most part except a few places
where the nesting was too deep. I noted a few minor coding standard violations
too. Some of the classes are getting quite long. Consider splitting into smaller
classes if that makes sense.
LGTM
is often used in such overall comments, to indicate Looks good to merge
.nit
is another such term, used to indicate minor flaws e.g., LGTM, almost. Just a few nits to fix.
.Approve
, Comment
, or Request changes
option as appropriate and click on the Submit review button.Step 1 Note these additional guidelines:
Comment
(i.e., not Approve
or Request changes
)Step 2 Do the first PR review as follows.
iP PR review allocation
Tutorial | Reviewer | First PR to review | Backup PR to review |
---|---|---|---|
CS2113-F10 | beaniestanley | Chiamjiaen | bryanwhl |
CS2113-F10 | CabbageTime | blank-bank | justinaquak |
CS2113-F10 | heyjinwei | song0180 | jhjhajh |
CS2113-F10 | jadenwjh | CabbageTime | blank-bank |
CS2113-F10 | song0180 | jhjhajh | cloudy3 |
CS2113-F10 | lihaoyangML | jadenwjh | CabbageTime |
CS2113-F10 | lowwilliam | baggiiiie | NoorSarrah |
CS2113-F10 | cloudy3 | lihaoyangML | jadenwjh |
CS2113-F10 | baggiiiie | NoorSarrah | beaniestanley |
CS2113-F10 | PingruiLi | nivikcivik | huachen24 |
CS2113-F10 | warmwhalefy | BlubberMonster | AlexanderTanJunAn |
CS2113-F10 | justinaquak | jianningzhuang | warmwhalefy |
CS2113-T10 | joohwan58 | hussain1998 | Vinci-Hu |
CS2113-T10 | SimJJ96 | 951553394 | violinyap |
CS2113-T10 | leeyp | brynagoh | ongweisheng |
CS2113-T10 | JoviYeung92 | zhangyongzhe20 | Cocokkkk |
CS2113-T10 | nagiteja | KimIdeas8 | Rye98 |
CS2113-T10 | kwokyto | kangxinwang | tehtea |
CS2113-T10 | tehtea | Zufiqqar | JonathanKhooTY |
CS2113-T10 | violinyap | joohwan58 | hussain1998 |
CS2113-T10 | L-Irvin | JoviYeung92 | zhangyongzhe20 |
CS2113-T10 | chenling1022 | Rizavur | iamakilahamed |
CS2113-T10 | Zufiqqar | JonathanKhooTY | geezzzyyy |
CS2113-T10 | geezzzyyy | chenling1022 | Rizavur |
CS2113-T10 | zhangyongzhe20 | Cocokkkk | sarzorwyn |
CS2113-T10 | boonjuey | KevinNgWK | soepaingzaw |
CS2113-T10 | KevinNgWK | soepaingzaw | E00426142 |
CS2113-T10 | Tyuanyuan | fangxinjia0203 | rageqqq |
CS2113-T10 | brynagoh | ongweisheng | boonjuey |
CS2113-T10 | cswbibibi | douglaslewpc | kwokyto |
CS2113-T10 | kangxinwang | tehtea | Zufiqqar |
CS2113-T10 | Vinci-Hu | Tyuanyuan | fangxinjia0203 |
CS2113-W10 | FarmZH98 | aliciatay-zls | leowxx |
CS2113-W10 | jalvinchan | LJ-37 | Emkay16 |
CS2113-W10 | jovanhuang | jonahtwl | Chihui8199 |
CS2113-W10 | JethroPhuah | LeeHanYongAndy | seangoats |
CS2113-W10 | NgManSing | isaharon | ManikaHennedige |
CS2113-W10 | ManikaHennedige | 8kdesign | yanli1215 |
CS2113-W10 | s-t-e-f | JethroPhuah | LeeHanYongAndy |
CS2113-W10 | yanli1215 | hiongkaihan | s-t-e-f |
CS2113-W10 | averliz | fsgmhoward | oscarlai1998 |
CS2113-W10 | yyixue | averliz | fsgmhoward |
CS2113-W10 | lamzf1998 | H-horizon | gerardtwk |
CS2113-W10 | Chihui8199 | kewenlok | brandonfoong |
CS2113-W10 | seangoats | yyixue | averliz |
CS2113-W10 | e0699194 | jovanhuang | jonahtwl |
CS2113T-F08 | AlexanderTanJunAn | lowwilliam | baggiiiie |
CS2113T-F08 | BlubberMonster | AlexanderTanJunAn | lowwilliam |
CS2113T-F08 | blank-bank | justinaquak | jianningzhuang |
CS2113T-F08 | huachen24 | EmilyTJX | hazelhedmine |
CS2113T-F08 | jhjhajh | cloudy3 | lihaoyangML |
CS2113T-F08 | EmilyTJX | hazelhedmine | vvvvh123 |
CS2113T-F08 | hazelhedmine | vvvvh123 | Krithigha24 |
CS2113T-F08 | NoorSarrah | beaniestanley | Chiamjiaen |
CS2113T-F08 | nivikcivik | huachen24 | EmilyTJX |
CS2113T-F08 | Krithigha24 | vaiish371 | liping-eng |
CS2113T-F08 | liping-eng | zihan9485 | heyjinwei |
CS2113T-F08 | MingShun98 | PingruiLi | nivikcivik |
CS2113T-F08 | Chiamjiaen | bryanwhl | MingShun98 |
CS2113T-F08 | vaiish371 | liping-eng | zihan9485 |
CS2113T-F08 | zihan9485 | heyjinwei | song0180 |
CS2113T-F08 | vvvvh123 | Krithigha24 | vaiish371 |
CS2113T-F08 | jianningzhuang | warmwhalefy | BlubberMonster |
CS2113T-F08 | bryanwhl | MingShun98 | PingruiLi |
CS2113T-T09 | wjchoi0712 | limwenfeng | L-Irvin |
CS2113T-T09 | fangxinjia0203 | rageqqq | wjchoi0712 |
CS2113T-T09 | JonathanKhooTY | geezzzyyy | chenling1022 |
CS2113T-T09 | iamakilahamed | leeyp | brynagoh |
CS2113T-T09 | hussain1998 | Vinci-Hu | Tyuanyuan |
CS2113T-T09 | limwenfeng | L-Irvin | JoviYeung92 |
CS2113T-T09 | soepaingzaw | E00426142 | SimBowen |
CS2113T-T09 | sarzorwyn | cswbibibi | douglaslewpc |
CS2113T-T09 | Cocokkkk | sarzorwyn | cswbibibi |
CS2113T-T09 | Rye98 | SimJJ96 | 951553394 |
CS2113T-T09 | Rizavur | iamakilahamed | leeyp |
CS2113T-T09 | SimBowen | zikunz | nagiteja |
CS2113T-T09 | rageqqq | wjchoi0712 | limwenfeng |
CS2113T-T09 | 951553394 | violinyap | joohwan58 |
CS2113T-T09 | KimIdeas8 | Rye98 | SimJJ96 |
CS2113T-T09 | zikunz | nagiteja | KimIdeas8 |
CS2113T-T09 | ongweisheng | boonjuey | KevinNgWK |
CS2113T-T09 | E00426142 | SimBowen | zikunz |
CS2113T-T09 | douglaslewpc | kwokyto | kangxinwang |
CS2113T-W09 | brandonfoong | xseh | marklowsk |
CS2113T-W09 | gerardtwk | NgManSing | isaharon |
CS2113T-W09 | kewenlok | brandonfoong | xseh |
CS2113T-W09 | LJ-37 | Emkay16 | lamzf1998 |
CS2113T-W09 | hiongkaihan | s-t-e-f | JethroPhuah |
CS2113T-W09 | LeeHanYongAndy | seangoats | yyixue |
CS2113T-W09 | jonahtwl | Chihui8199 | kewenlok |
CS2113T-W09 | tzexern | e0699194 | jovanhuang |
CS2113T-W09 | ivanchongzhien | fupernova | jalvinchan |
CS2113T-W09 | H-horizon | gerardtwk | NgManSing |
CS2113T-W09 | marklowsk | ivanchongzhien | fupernova |
CS2113T-W09 | leowxx | tzexern | e0699194 |
CS2113T-W09 | isaharon | ManikaHennedige | 8kdesign |
CS2113T-W09 | oscarlai1998 | FarmZH98 | aliciatay-zls |
CS2113T-W09 | fsgmhoward | oscarlai1998 | FarmZH98 |
CS2113T-W09 | aliciatay-zls | leowxx | tzexern |
CS2113T-W09 | Emkay16 | lamzf1998 | H-horizon |
CS2113T-W09 | fupernova | jalvinchan | LJ-37 |
CS2113T-W09 | xseh | marklowsk | ivanchongzhien |
CS2113T-W09 | 8kdesign | yanli1215 | hiongkaihan |
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.
iP PR review allocation
Tutorial | Reviewer | Second PR to review | Backup PR to review |
---|---|---|---|
CS2113-F10 | beaniestanley | MingShun98 | PingruiLi |
CS2113-F10 | CabbageTime | jianningzhuang | warmwhalefy |
CS2113-F10 | heyjinwei | cloudy3 | lihaoyangML |
CS2113-F10 | jadenwjh | justinaquak | jianningzhuang |
CS2113-F10 | song0180 | lihaoyangML | jadenwjh |
CS2113-F10 | lihaoyangML | blank-bank | justinaquak |
CS2113-F10 | lowwilliam | beaniestanley | Chiamjiaen |
CS2113-F10 | cloudy3 | CabbageTime | blank-bank |
CS2113-F10 | baggiiiie | Chiamjiaen | bryanwhl |
CS2113-F10 | PingruiLi | EmilyTJX | hazelhedmine |
CS2113-F10 | warmwhalefy | lowwilliam | baggiiiie |
CS2113-F10 | justinaquak | BlubberMonster | AlexanderTanJunAn |
CS2113-T10 | joohwan58 | Tyuanyuan | fangxinjia0203 |
CS2113-T10 | SimJJ96 | joohwan58 | hussain1998 |
CS2113-T10 | leeyp | boonjuey | KevinNgWK |
CS2113-T10 | JoviYeung92 | sarzorwyn | cswbibibi |
CS2113-T10 | nagiteja | SimJJ96 | 951553394 |
CS2113-T10 | kwokyto | Zufiqqar | JonathanKhooTY |
CS2113-T10 | tehtea | geezzzyyy | chenling1022 |
CS2113-T10 | violinyap | Vinci-Hu | Tyuanyuan |
CS2113-T10 | L-Irvin | Cocokkkk | sarzorwyn |
CS2113-T10 | chenling1022 | leeyp | brynagoh |
CS2113-T10 | Zufiqqar | chenling1022 | Rizavur |
CS2113-T10 | geezzzyyy | iamakilahamed | leeyp |
CS2113-T10 | zhangyongzhe20 | cswbibibi | douglaslewpc |
CS2113-T10 | boonjuey | E00426142 | SimBowen |
CS2113-T10 | KevinNgWK | SimBowen | zikunz |
CS2113-T10 | Tyuanyuan | wjchoi0712 | limwenfeng |
CS2113-T10 | brynagoh | KevinNgWK | soepaingzaw |
CS2113-T10 | cswbibibi | kangxinwang | tehtea |
CS2113-T10 | kangxinwang | JonathanKhooTY | geezzzyyy |
CS2113-T10 | Vinci-Hu | rageqqq | wjchoi0712 |
CS2113-W10 | FarmZH98 | tzexern | e0699194 |
CS2113-W10 | jalvinchan | lamzf1998 | H-horizon |
CS2113-W10 | jovanhuang | kewenlok | brandonfoong |
CS2113-W10 | JethroPhuah | yyixue | averliz |
CS2113-W10 | NgManSing | 8kdesign | yanli1215 |
CS2113-W10 | ManikaHennedige | hiongkaihan | s-t-e-f |
CS2113-W10 | s-t-e-f | seangoats | yyixue |
CS2113-W10 | yanli1215 | JethroPhuah | LeeHanYongAndy |
CS2113-W10 | averliz | FarmZH98 | aliciatay-zls |
CS2113-W10 | yyixue | oscarlai1998 | FarmZH98 |
CS2113-W10 | lamzf1998 | NgManSing | isaharon |
CS2113-W10 | Chihui8199 | xseh | marklowsk |
CS2113-W10 | seangoats | fsgmhoward | oscarlai1998 |
CS2113-W10 | e0699194 | Chihui8199 | kewenlok |
CS2113T-F08 | AlexanderTanJunAn | NoorSarrah | beaniestanley |
CS2113T-F08 | BlubberMonster | baggiiiie | NoorSarrah |
CS2113T-F08 | blank-bank | warmwhalefy | BlubberMonster |
CS2113T-F08 | huachen24 | vvvvh123 | Krithigha24 |
CS2113T-F08 | jhjhajh | jadenwjh | CabbageTime |
CS2113T-F08 | EmilyTJX | Krithigha24 | vaiish371 |
CS2113T-F08 | hazelhedmine | vaiish371 | liping-eng |
CS2113T-F08 | NoorSarrah | bryanwhl | MingShun98 |
CS2113T-F08 | nivikcivik | hazelhedmine | vvvvh123 |
CS2113T-F08 | Krithigha24 | zihan9485 | heyjinwei |
CS2113T-F08 | liping-eng | song0180 | jhjhajh |
CS2113T-F08 | MingShun98 | huachen24 | EmilyTJX |
CS2113T-F08 | Chiamjiaen | PingruiLi | nivikcivik |
CS2113T-F08 | vaiish371 | heyjinwei | song0180 |
CS2113T-F08 | zihan9485 | jhjhajh | cloudy3 |
CS2113T-F08 | vvvvh123 | liping-eng | zihan9485 |
CS2113T-F08 | jianningzhuang | AlexanderTanJunAn | lowwilliam |
CS2113T-F08 | bryanwhl | nivikcivik | huachen24 |
CS2113T-T09 | wjchoi0712 | JoviYeung92 | zhangyongzhe20 |
CS2113T-T09 | fangxinjia0203 | limwenfeng | L-Irvin |
CS2113T-T09 | JonathanKhooTY | Rizavur | iamakilahamed |
CS2113T-T09 | iamakilahamed | ongweisheng | boonjuey |
CS2113T-T09 | hussain1998 | fangxinjia0203 | rageqqq |
CS2113T-T09 | limwenfeng | zhangyongzhe20 | Cocokkkk |
CS2113T-T09 | soepaingzaw | zikunz | nagiteja |
CS2113T-T09 | sarzorwyn | kwokyto | kangxinwang |
CS2113T-T09 | Cocokkkk | douglaslewpc | kwokyto |
CS2113T-T09 | Rye98 | violinyap | joohwan58 |
CS2113T-T09 | Rizavur | brynagoh | ongweisheng |
CS2113T-T09 | SimBowen | KimIdeas8 | Rye98 |
CS2113T-T09 | rageqqq | L-Irvin | JoviYeung92 |
CS2113T-T09 | 951553394 | hussain1998 | Vinci-Hu |
CS2113T-T09 | KimIdeas8 | 951553394 | violinyap |
CS2113T-T09 | zikunz | Rye98 | SimJJ96 |
CS2113T-T09 | ongweisheng | soepaingzaw | E00426142 |
CS2113T-T09 | E00426142 | nagiteja | KimIdeas8 |
CS2113T-T09 | douglaslewpc | tehtea | Zufiqqar |
CS2113T-W09 | brandonfoong | ivanchongzhien | fupernova |
CS2113T-W09 | gerardtwk | ManikaHennedige | 8kdesign |
CS2113T-W09 | kewenlok | marklowsk | ivanchongzhien |
CS2113T-W09 | LJ-37 | H-horizon | gerardtwk |
CS2113T-W09 | hiongkaihan | LeeHanYongAndy | seangoats |
CS2113T-W09 | LeeHanYongAndy | averliz | fsgmhoward |
CS2113T-W09 | jonahtwl | brandonfoong | xseh |
CS2113T-W09 | tzexern | jonahtwl | Chihui8199 |
CS2113T-W09 | ivanchongzhien | LJ-37 | Emkay16 |
CS2113T-W09 | H-horizon | isaharon | ManikaHennedige |
CS2113T-W09 | marklowsk | jalvinchan | LJ-37 |
CS2113T-W09 | leowxx | jovanhuang | jonahtwl |
CS2113T-W09 | isaharon | yanli1215 | hiongkaihan |
CS2113T-W09 | oscarlai1998 | leowxx | tzexern |
CS2113T-W09 | fsgmhoward | aliciatay-zls | leowxx |
CS2113T-W09 | aliciatay-zls | e0699194 | jovanhuang |
CS2113T-W09 | Emkay16 | gerardtwk | NgManSing |
CS2113T-W09 | fupernova | Emkay16 | lamzf1998 |
CS2113T-W09 | xseh | fupernova | jalvinchan |
CS2113T-W09 | 8kdesign | s-t-e-f | JethroPhuah |
If the allocated PR is not suitable, use the same strategy as before to find an alternative PR to review.
Timely completion of the weekly tP tasks can improve the project management component of your tP grade.
Admin tP → Grading → Project Management
5A. Process:
Evaluates: How well you did in project management related aspects of the project, as an individual and as a team
Based on: tutor/bot observations of project milestones and GitHub data
Grading criteria:
Project done iteratively and incrementally (opposite: doing most of the work in one big burst)
Milestones reached on time (i.e., the midnight before of the tutorial) (to get a good grade for this aspect, achieve at least 75% of the recommended milestone progress).
Good use of GitHub milestones mechanism.
Good use of GitHub releases mechanism.
Good version control, based on the repo.
Reasonable attempt to use the forking workflow at least for the early part of the project.
Good task definition, assignment and tracking, based on the issue tracker.
Good use of buffers (opposite: everything at the last minute).
5B. Team-tasks:
Evaluates: How much you contributed to team-tasks
Admin tP → Expectations: Examples of team-tasks
Here is a non-exhaustive list of team-tasks:
Based on: peer evaluations, tutor observations
Grading criteria: Do these to earn full marks.
As we are still at the early stages of identifying a problem to solve, do not think of the product (i.e., the solution) yet. That is, do not discuss the product features, UI, command format, and implementation details, etc. unless they are pertinent to the decision of the project direction.
Admin tP: Expectations
project expectations
The high-level learning outcome of the team project (tP):
Accordingly, the tP is structured to resemble an early stage of a small software project in which you will,
The focus of the tP is to learn the following aspects:
You may develop any product provided it is meant for users who can type fast, and prefer typing over mouse/voice commands. Therefore, Command Line Interface (CLI) is the primary mode of input.
Admin tP Contstraints → Constraint-Typing-Preferred
Admin tP Contstraints → Recommendation-CLI-First
Following from the Constraint-Typing-Preferred, if the app is optimized for the target user (graded under the product design criterion), a user who can type fast should be able to accomplish most tasks faster via CLI, compared to a hypothetical GUI-only version of the app. For example, adding a new entity via the CLI should be faster than entering the same data through a GUI form.
Therefore, the input to the app needs to be primarily CLI. If you do implement a GUI, that GUI should primarily be used to give visual feedback to the user. While we don't prohibit non-CLI inputs, note that such inputs will reduce the suitability of the product to target users. Therefore, give CLI alternatives to mouse/GUI inputs, if applicable.
Also keep in mind:
You are strongly discouraged from developing a GUI application as it can increase the workload unnecessarily.
Admin tP Contstraints → Recommendation-No-GUI
Creating a good Java GUI takes a lot of extra effort, which can easily push the tP effort beyond the expected range. In addition, good GUI design is not a learning outcome of this module. Therefore, you are strongly discouraged from creating a GUI application. Choose the GUI path only if you are willing to take the extra workload on top of the module's normal load.
You are expected to:
Why the need to narrow down the user profile?
How narrow can we make the target market?
The size of the target market is not a grading criterion. You can make it as narrow as you want. Even a single user target market is fine as long as you can define that single user in a way others can understand (reason: project evaluators need to evaluate the project from the point of view of the target users).
Example 1: If the product targets CS2113/T instructors, there can be features that are applicable to them only, such as the ability to see a link to a student's project on GitHub
Example 2: If your app manages contacts, you can optimize its features based on,
Your project will be graded based on how well the features match the target user profile and how well the features fit-together.
The expected level of functionality from a team is roughly what you can achieve if each member contributes about the same amount of functional code as required by a i.e., if all requirements were met at the minimal level specifiedtypical iP.
You will get full marks for implementation effort if you meet the expectation stated above. There are no extra marks for exceeding that bar. You are better off spending that effort in improving other aspects of the project. Try to avoid adding more features than necessary, unless you are doing it out of interest. As mentioned elsewhere, a functionality just the right size and of high quality will earn more marks than a functionality bigger (or more difficult, or more interesting/novel) but of lower quality.
In the most recent semester, more than 80% of the students did significantly more work than what was needed to earn full marks for effort. Many of them were likely under the wrong impression that doing more features will earn them more marks. Try to avoid doing the same mistake yourself.
In fact, here is the grading criterion for the individual project effort:
Admin tP → PE → Evaluating the Implementation Effort
Consider implementation work only (i.e., exclude testing, documentation, project management etc.)
The typical iP refers to an iP where all the requirements are met at the minimal expectations given.
Use the person's PPP and RepoSense page to evaluate the effort.
Tip: Contribute to all aspects of the project e.g. write backend code, frontend code, test code, user documentation, and developer documentation. Reason: If you limit yourself to certain aspects only, you could lose marks allocated for the aspects you did not do. In addition, the final exam assumes that you are familiar with all aspects of the project.
Tip: Do all the work related to your enhancement yourself. Reason: If there is no clear division of who did which enhancement, it will be difficult to divide project credit (or assign responsibility for bugs detected by testers) later.
🤔 How much testings is enough? We expect you to decide. You learned different types of testing and what they try to achieve. Based on that, you should decide how much of each type is required. Similarly, you can decide to what extent you want to automate tests, depending on the benefits and the effort required.
There is no requirement for a minimum coverage level. Note that in a production environment you are often required to have at least 90% of the code covered by tests. In this project, it can be less. The weaker your tests are, the higher the risk of bugs, which will cost marks if not fixed before the final submission.
Team-tasks are the tasks that someone in the team has to do.
Examples of team-tasks
Here is a non-exhaustive list of team-tasks:
Roles indicate aspects you are in charge of and responsible for. E.g., if you are in charge of documentation, you are the person who should allocate which parts of the documentation is to be done by who, ensure the document is in right format, ensure consistency etc.
Recommended roles and responsibilities
This is a non-exhaustive list; you may define additional roles.
Ensure each of the important roles are assigned to one person in the team. It is OK to have a 'backup' for each role, but for each aspect there should be one person who is unequivocally the person responsible for it. Reason: when everyone is responsible for everything, no one is.
Admin tP: Constraints
Your project should comply with the following constraints. Reason: to increase comparability among projects and to maximize applicability of module learning outcomes in the project.
The product should be targeting users who can type fast and prefer typing over other means of input.
Reason: to increase comparability of products, and to make feature evaluation easier for peer evaluators.
The product should be for a single user i.e. (not a multi-user product).
Reason: multi-user systems are hard to test, which is unfair for peer testers who will be graded based on the number of bugs they find.
The product needs to be developed in a breadth-first incremental manner over the project duration. While it is fine to do less in some weeks and more in other weeks, a reasonably consistent delivery rate is expected. For example, it is not acceptable to do the entire project over the recess week and do almost nothing for the remainder of the semester.
Reasons: 1. To simulate a real project where you have to work on a code base over a long period, possibly with breaks in the middle. 2. To learn how to deliver big features in small increments.
The data should be stored locally and should be in a human editable text file.
Reason: To allow advanced users to manipulate the data by editing the data file.
Do not use a Database Management System e.g., MySQLDBMS to store data.
Reason: Using a DBMS to store data will reduce the room to apply OOP techniques to manage data. It is true that most real world systems use a DBMS, but given the small size of this project, we
need to optimize it for CS2113/T
module learning outcomes; covering DBMS-related topics will have to be left to database modules or level 3 project modules.
The software should follow the Object-oriented paradigm primarily (but you are allowed to mix in a bit other styles when justifiable).
Reason: For you to practice using OOP in a non-trivial project.
The software should work on the Windows, Linux, and OS-X platforms. Even if you are unable to manually test the app on all three platforms, deliberately avoid using OS-dependent libraries and OS-specific features.
Reason: Peer testers should be able to use any of these platforms.
The software should work on a computer that has version 11 of Java i.e., no other Java version installed.
The software should work without requiring an installer.
Reason: Testers may not want to install your product on their computer.
The software should not depend on your own remote server.
Reason: Anyone should be able to use/test your app any time, even after the semester is over.
The use of third-party frameworks/libraries is allowed but only if they,
and is subjected to prior approval by the teaching team.
Reason: We will not allow third-party software that can interfere with the learning objectives of the module.
Please post in the forum your request to use a third-party libraries before you start using the library. Once a specific library has been approved for one team, other teams may use it without requesting permission again.
Reason: The whole class should know which external software are used by others so that they can do the same if they wish to.
Package everything into a single JAR file.
Reason: Requiring the users to download more files can cause complications in the final peer testing session.
If you are unable to package everything into a JAR file, package the JAR file and other files needed into a single zip file.
The file sizes of the deliverables should not exceed the limits given below.
Reason: It is hard to download big files during the practical exam due to limited WiFi bandwidth at the venue:
Product (i.e., the JAR/ZIP file): 100MB (Some third-party software -- e.g., Stanford NLP library, certain graphics libraries -- can cause you to exceed this limit)
Documents (i.e., PDF files): 15MB/file (Not following the recommended method of converting to PDF format can cause big PDF files. Another cause is using unnecessarily high resolution images for screenshots).
The DG and UG should be PDF-friendly. Don't use expandable panels, embedded videos, animated GIFs etc.
Reason: The UG and DG used in the final grading will be in PDF format:
In addition, you are strongly encouraged to follow these recommendations as they can help increase your project score.
It is OK to use a reliable public API e.g., Google search but we recommend that you have a fallback mechanism (e.g., able to load data using a data file if the network is down).
Reason: During the mass peer-testing session, the network access can be intermittent due to high load. If your feature cannot be tested due to lack of Internet, that will have to be counted as a major bug, to be fair to those whose app is being tested and bugs found being penalized.
If you use NUS data (e.g., scrape data from an NUS website), please work with NUS IT directly to get their approval first. Even well-intentioned use of NUS data without approval can get you into serious trouble (has happened before). The teaching team will not be able to get approval for you as the use of NUS data is not a module requirement.
Avoid implementing hard-to-test (both for manual testing as well as automated testing) features or features that make your product hard-to-test.
Reason: testability is a grading criterion. If you choose to implement such a feature, you will need to spend an extra effort to reach an acceptable level of testability.
Here are some examples of features that are hard-to-test:
Creating a good Java GUI takes a lot of extra effort, which can easily push the tP effort beyond the expected range. In addition, good GUI design is not a learning outcome of this module. Therefore, you are strongly discouraged from creating a GUI application. Choose the GUI path only if you are willing to take the extra workload on top of the module's normal load.
Following from the Constraint-Typing-Preferred, if the app is optimized for the target user (graded under the product design criterion), a user who can type fast should be able to accomplish most tasks faster via CLI, compared to a hypothetical GUI-only version of the app. For example, adding a new entity via the CLI should be faster than entering the same data through a GUI form.
Therefore, the input to the app needs to be primarily CLI. If you do implement a GUI, that GUI should primarily be used to give visual feedback to the user. While we don't prohibit non-CLI inputs, note that such inputs will reduce the suitability of the product to target users. Therefore, give CLI alternatives to mouse/GUI inputs, if applicable.
Also keep in mind:
If you are not sure if your product complies with a certain constraint/recommendation, please seek clarification by posting in the forum (preferred) or emailing the supervisor.
Admin tP: Grading → Criteria Used for Grading the Product Design
Evaluates:
Evaluated by:
Admin tP → PE → Grading Instructions for Product Design
Evaluate based on the User Guide and the actual product behavior.
Criterion | Unable to judge | Low | Medium | High |
---|---|---|---|---|
target user |
Not specified | Clearly specified and narrowed down appropriately | ||
value proposition |
Not specified | The value to target user is low. App is not worth using | Some small group of target users might find the app worth using | Most of the target users are likely to find the app worth using |
optimized for target user |
Not enough focus for CLI users | Mostly CLI-based, but cumbersome to use most of the time | Feels like a fast typist can be more productive with the app, compared to an equivalent GUI app without a CLI | |
feature-fit |
Many of the features don't fit with others | Most features fit together but a few may be possible misfits | All features fit together to for a cohesive whole |
In addition, feature flaws reported in the PE will be considered when grading this aspect.
Note that 'product design' or 'functionality' are not critical learning outcomes of the tP. Therefore, the bar you need to reach to get full marks will be quite low. For example, the Medium
level in the rubric given in the panel above should be enough to achieve full marks. Similarly, only cases of excessive 'feature flaw' bugs will affect the score.
These are considered feature flaws:
The feature does not solve the stated problem of the intended user i.e., the feature is 'incomplete'
Hard-to-test features
Features that don't fit well with the product
Features that are not optimized enough for fast-typists or target users