Difference between revisions of "APB-Code review"

From "A B C"
Jump to navigation Jump to search
Line 79: Line 79:
 
<table>
 
<table>
 
<tr class="sh"><td>Date</td><td>Title</td><td>Author</td><td>Reviewer 1</td><td>Reviewer 2</td><td>Reviewer 3</td><td>Reviewer 4</td></tr>
 
<tr class="sh"><td>Date</td><td>Title</td><td>Author</td><td>Reviewer 1</td><td>Reviewer 2</td><td>Reviewer 3</td><td>Reviewer 4</td></tr>
<tr class="s1"><td>October 10</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Caitlin_Harrigan/BCB410_2018_Project pointszr]</td><td>'''Cait Harrigan'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s1"><td>October 10</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Caitlin_Harrigan/BCB410_2018_Project pointszr]</td><td>'''Cait Harrigan'''</td> <td>Judy Lee</td><td>Yufei Yang</td><td>Liwen Zhuang</td><td>Xindi Zhang</td></tr>
<tr class="s2"><td>October 10</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Judy_Lee/BCB410_Project ScoreVisualizer]</td><td>'''Judy Lee'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s2"><td>October 10</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Judy_Lee/BCB410_Project ScoreVisualizer]</td><td>'''Judy Lee'''</td>             <td>Yiqiu Tang</td><td>Fan Shen</td><td>Han Zhang</td><td>Emily Ayala</td></tr>
<tr class="s1"><td>October 10</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Han_Zhang/BCB410_2018_Project align.git]</td><td>'''Han Zhang'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s1"><td>October 10</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Han_Zhang/BCB410_2018_Project align.git]</td><td>'''Han Zhang'''</td>           <td>Yoonsik Park</td><td>Rachel Woo</td><td>Deus Bajaj</td><td>Audrina Zhou</td></tr>
<tr class="s2"><td>October 10</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Yoonsik_Park/Project_Page flagVis]</td><td>'''Yoon Park'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s2"><td>October 10</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Yoonsik_Park/Project_Page flagVis]</td><td>'''Yoon Park'''</td>                 <td>Cait Harrigan</td><td>Justin Lee</td><td>Yufei Yang</td><td>Judy Lee</td></tr>
 
</table>
 
</table>
  
Line 88: Line 88:
 
<table>
 
<table>
 
<tr class="sh"><td>Date</td><td>Title</td><td>Author</td><td>Reviewer 1</td><td>Reviewer 2</td><td>Reviewer 3</td><td>Reviewer 4</td></tr>
 
<tr class="sh"><td>Date</td><td>Title</td><td>Author</td><td>Reviewer 1</td><td>Reviewer 2</td><td>Reviewer 3</td><td>Reviewer 4</td></tr>
<tr class="s1"><td>October 17</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Audrina_Zhou/BCB410_Journal pcclust]</td><td>'''Audrina Zhou'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s1"><td>October 17</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Audrina_Zhou/BCB410_Journal pcclust]</td><td>'''Audrina Zhou'''</td>             <td>Emily Ayala</td><td>Han Zhang</td><td>Yiqiu Tang</td><td>Cait Harrigan</td></tr>
<tr class="s2"><td>October 17</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Liwen_Zhuang/BCH410_Project_Page VISMCL.git]</td><td>'''Liwen Zhuang'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s2"><td>October 17</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Liwen_Zhuang/BCH410_Project_Page VISMCL.git]</td><td>'''Liwen Zhuang'''</td>     <td>Audrina Zhou</td><td>Xindi Zhang</td><td>Justin Lee</td><td>Deus Bajaj</td></tr>
<tr class="s1"><td>October 17</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Deus_Bajaj/BCB410_2018_Project vslyzr]</td><td>'''Deus Bajaj'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s1"><td>October 17</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Deus_Bajaj/BCB410_2018_Project vslyzr]</td><td>'''Deus Bajaj'''</td>             <td>Yin Yin </td><td>Liwen Zhuang</td><td>Rachel Woo</td><td>Fan Shen</td></tr>
<tr class="s2"><td>October 17</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Xindi_Zhang/BCB410_Project_page SigAct]</td><td>'''Xindi Zhang'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s2"><td>October 17</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Xindi_Zhang/BCB410_Project_page SigAct]</td><td>'''Xindi Zhang'''</td>           <td>Yiqiu Tang </td><td>Doga Ister</td><td>Judy Lee</td><td>Chantal Ho</td></tr>
 
</table>
 
</table>
  
Line 97: Line 97:
 
<table>
 
<table>
 
<tr class="sh"><td>Date</td><td>Title</td><td>Author</td><td>Reviewer 1</td><td>Reviewer 2</td><td>Reviewer 3</td><td>Reviewer 4</td></tr>
 
<tr class="sh"><td>Date</td><td>Title</td><td>Author</td><td>Reviewer 1</td><td>Reviewer 2</td><td>Reviewer 3</td><td>Reviewer 4</td></tr>
<tr class="s1"><td>October 24</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Justin_Lee/BCB410_Project tmine]</td><td>'''Justin Lee'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s1"><td>October 24</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Justin_Lee/BCB410_Project tmine]</td><td>'''Justin Lee'''</td>                 <td>Han Zhang</td><td>Audrina Zhou</td><td>Doga Ister</td><td>Yin Yin</td></tr>
<tr class="s2"><td>October 24</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Fan_Shen/BCB410_Projects nonexonmap.git]</td><td>'''Fan Shen'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s2"><td>October 24</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Fan_Shen/BCB410_Projects nonexonmap.git]</td><td>'''Fan Shen'''</td>           <td>Xindi Zhang</td><td>Yoonsik Park</td><td>Cait Harrigan</td><td>Justin Lee</td></tr>
<tr class="s1"><td>October 24</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:YiQiu_Tang/BCB410_Projects genomeRegionsInfo]</td><td>'''Yiqiu Tang'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s1"><td>October 24</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:YiQiu_Tang/BCB410_Projects genomeRegionsInfo]</td><td>'''Yiqiu Tang'''</td>     <td>Chantal Ho</td><td>Deus Bajaj</td><td>Emily Ayala</td><td>Rachel Woo</td></tr>
<tr class="s2"><td>October 24</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Rachel_Woo/Journal NN]</td><td>'''Rachel Woo'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s2"><td>October 24</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Rachel_Woo/Journal NN]</td><td>'''Rachel Woo'''</td>                           <td>Fan Shen</td><td>Emily Ayala</td><td>Liwen Zhuang</td><td>Yiqiu Tang</td></tr>
<tr class="s1"><td>October 24</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Emily_Ayala/BCB410_Project KaKsMap]</td><td>'''Emily Ayala'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s1"><td>October 24</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Emily_Ayala/BCB410_Project KaKsMap]</td><td>'''Emily Ayala'''</td>             <td>Doga Ister</td><td>Chantal Ho</td><td>Yin Yin </td><td>Yufei Yang</td></tr>
 
</table>
 
</table>
  
Line 107: Line 107:
 
<table>
 
<table>
 
<tr class="sh"><td>Date</td><td>Title</td><td>Author</td><td>Reviewer 1</td><td>Reviewer 2</td><td>Reviewer 3</td><td>Reviewer 4</td></tr>
 
<tr class="sh"><td>Date</td><td>Title</td><td>Author</td><td>Reviewer 1</td><td>Reviewer 2</td><td>Reviewer 3</td><td>Reviewer 4</td></tr>
<tr class="s1"><td>October 31</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Chantal_Ho/BCB410_2018_Project HiCViz]</td><td>'''Chantal Ho'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s1"><td>October 31</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Chantal_Ho/BCB410_2018_Project HiCViz]</td><td>'''Chantal Ho'''</td>           <td>Yufei Yang</td><td>Audrina Zhou</td><td>Yoonsik Park</td><td>Rachel Woo</td></tr>
<tr class="s2"><td>October 31</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Yin_Yin/BCH410_project_page BreakViz]</td><td>'''Yin Yin'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s2"><td>October 31</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Yin_Yin/BCH410_project_page BreakViz]</td><td>'''Yin Yin'''</td>               <td>Justin Lee</td><td>Han Zhang </td><td>Chantal Ho</td><td>Yin Yin</td></tr>
<tr class="s1"><td>October 31</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Doga_Ister/BCB410_2018_Project Rview]</td><td>'''Doga Ister'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s1"><td>October 31</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Doga_Ister/BCB410_2018_Project Rview]</td><td>'''Doga Ister'''</td>             <td>Deus Bajaj</td><td>Judy Lee</td><td>Fan Shen</td><td>Yoonsik Park</td></tr>
<tr class="s2"><td>October 31</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Yufei_Yang/BCB410_2018_Project#Project_Github MSPTM]</td><td>'''Yufei Yang'''</td><td>NN</td><td>NN</td><td>NN</td><td>NN</td></tr>
+
<tr class="s2"><td>October 31</td><td>[http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Yufei_Yang/BCB410_2018_Project MSPTM]</td><td>'''Yufei Yang'''</td>             <td>Liwen Zhuang</td><td>Cait Harrigan</td><td>Xindi Zhang</td><td>Doga Ister</td></tr>
 
</table>
 
</table>
  
 +
 +
 +
<table cellpadding="5">
 +
 +
<tr class="sh">
 +
<td><b>Activity</b></td>
 +
<td><b>Weight</b><br><small>BCH441 - (Undergraduates)</small></td>
 +
<td><b>Weight</b><br><small>BCH1441 - (Graduates)</small></td>
 +
</tr>
 +
 +
<tr><td colspan="3" class="sp"></td></tr>
 +
 +
<tr class="s2">
 +
<td>Integrator Units</td>
 +
<td>40 marks</td>
 +
<td>32 marks</td>
 +
</tr>
 +
</table>
  
  

Revision as of 18:02, 9 October 2018

Code and Design Review

(Code review sessions - conduct and expectations)


 


Abstract:

This page explains conduct of and expectations for code and design reviews.


Objectives:
Code reviews are intended to ...

  • ... improve everyone's familarity with the contents;
  • ... practice critical analysis of the material;
  • ... practice giving constructive feedback in a professional context;
  • ... improve communication skills.

 


Deliverables:

Your participation as reviewers in the Code review sessions will be worth 8 marks in each panel for a total of 4 x 8 marks maximum.


 



 



 


Contents

We call our review sessions "Code reviews" for simplicity, however the purpose is not only to review code, but also the design, contents, and form of the submitted material.

Code reviews are done for course credit of the reviewers. The units are already going to have been marked by the instructor before the review. Critical reviews are not going to affect that mark, there is no need to hold back on criticism to protect your peers for that reason. The best way to help your peers is to provide a high-quality review, with creative, constructive feedback. A well-prepared, thoughtful, knowledgeable review will be immensely valuable for your peers. And since you as the reviewer will be evaluated for credit, I hope that you will put your heart into it.

To repeat: your class mates will not benefit from a "soft" review since their grade has already been determined. A stringent review will give them the most opportunity to improve their code and earn marks in the resubmission. A high-quality review will earn the most marks for yourself - and will give yu the most satisfaction for a job well done.


Principles
  • Units are not to be modified, until after the code review. Do not edit, upload, commit, push, merge or otherwise modify any material you have submitted for credit until after the review is done.
  • We will use four weeks for reviews. We will schedule five to six reviews per class session, with four reviewers. This will give everyone approximately five minutes for their review contributions.
  • Everyone will review four units.
  • Typically everyone will participate in one review at every session, and never more than two.


 

Schedule

DateTitleAuthorReviewer 1Reviewer 2Reviewer 3Reviewer 4
October 10pointszrCait Harrigan Judy LeeYufei YangLiwen ZhuangXindi Zhang
October 10ScoreVisualizerJudy Lee Yiqiu TangFan ShenHan ZhangEmily Ayala
October 10align.gitHan Zhang Yoonsik ParkRachel WooDeus BajajAudrina Zhou
October 10flagVisYoon Park Cait HarriganJustin LeeYufei YangJudy Lee


DateTitleAuthorReviewer 1Reviewer 2Reviewer 3Reviewer 4
October 17pcclustAudrina Zhou Emily AyalaHan ZhangYiqiu TangCait Harrigan
October 17VISMCL.gitLiwen Zhuang Audrina ZhouXindi ZhangJustin LeeDeus Bajaj
October 17vslyzrDeus Bajaj Yin Yin Liwen ZhuangRachel WooFan Shen
October 17SigActXindi Zhang Yiqiu Tang Doga IsterJudy LeeChantal Ho


DateTitleAuthorReviewer 1Reviewer 2Reviewer 3Reviewer 4
October 24tmineJustin Lee Han ZhangAudrina ZhouDoga IsterYin Yin
October 24nonexonmap.gitFan Shen Xindi ZhangYoonsik ParkCait HarriganJustin Lee
October 24genomeRegionsInfoYiqiu Tang Chantal HoDeus BajajEmily AyalaRachel Woo
October 24NNRachel Woo Fan ShenEmily AyalaLiwen ZhuangYiqiu Tang
October 24KaKsMapEmily Ayala Doga IsterChantal HoYin Yin Yufei Yang


DateTitleAuthorReviewer 1Reviewer 2Reviewer 3Reviewer 4
October 31HiCVizChantal Ho Yufei YangAudrina ZhouYoonsik ParkRachel Woo
October 31BreakVizYin Yin Justin LeeHan Zhang Chantal HoYin Yin
October 31RviewDoga Ister Deus BajajJudy LeeFan ShenYoonsik Park
October 31MSPTMYufei Yang Liwen ZhuangCait HarriganXindi ZhangDoga Ister


Activity Weight
BCH441 - (Undergraduates)
Weight
BCH1441 - (Graduates)
Integrator Units 40 marks 32 marks


 

Preparation

  • The entire class is expected to have familiarized themselves with all submitted package before the first review, to establish context.
  • The entire class is expected to have installed and assessed the packages that are scheduled for review each review session, so that everyone can follow the discussion and contribute.
  • The designated reviewers of a package have worked through the material in detail, have made themselves knowledgeable about the context and background, and have prepared their review contributions (see below). I expect that reviewers will come to class very well prepared, and that they consider the unit with reference to the expectations set out in the evaluation rubrics for software design, code and documentation.


 

During the review

 

Reviews proceed in three rounds: first, the lead reviewers ask their most important prepared questions in turn; second, the reviewers lead a more general round of discussion; finally the discusion is opened to the entire class. Each review will take approximaetley twenty minutes.


 
  • Code will not be presented by the author (unfortunately we don't have enough time), but the reviewers may ask some initial questions for clarification. Other than that, familiartity with the unit is assumed.
  • Reviewers will comment on issues focussing on importance, visual appeal and utility of the package. Ideally, reviewers will make specific suggestions for improvement but it is better to point out a weakness, even if you don't quite know how to address it, than to remain silent. Once it is pointed out, others may have useful ideas. Of course, if you note particular strengths of the unit, that is also welcome.
  • Issues for discussion could include:
    • Suggestions to make the objectives of the tool more clear.
    • Improvements to integrating the unit with existing packagesothers (but without introducing unnecessary dependencies).
    • Constructive critique of software design decisions.
    • Improvements to examples to better illustrate the concepts.
    • Addressing any unstated assumptions.
    • Identifying significant dependencies that could become obstacles to refactoring.
    • Flagging, where the material lacks rigour or is factully incorrect.
    • Improvements to form and layout.
    • Identifying code that does not conform to coding style.
    • Identifying code that exemplifies poor practice ("anti-patterns", design smell", "code smell").
    • Improvements to comments;
    • Improvements to visuals;
    • Flagging where the sample code might not be robust against faulty input.
    • Flagging where the sample code might not be safe against overwriting user data.
    • Any other issues ...
  • During the review, reviewers take notes of responses and comments.


 

Overall, be mindful that code review is a sensitive social issue, and that the primary objective is not to point out errors, but to improve the entire "team".


 

After the review

  • After the review, on the same day, the reviewers summarize their issues and proposals on the "Talk" page of the package synopsis on the Student Wiki (briefly, in point form);
  • Once all suggestions are in, the unit author begins revisions.
  • It is not mandatory that the revisions follow the reviewers' suggestions. Authors need to consider comments carefully, but apply their own best judgement. In the end, the reviewers are responsible for their reviews, but the author is responsible for their package.


 

A final note

I hope that in your career you will find yourself in a workplace where peer-review is a regular part of your activities. This may contribute tremendously to better outcomes, more transparent and more meaningful work, and more cohesive teams. When that time comes, your skills as reviewers will be evaluated implicitly, although perhaps neither you, your supervisor, nor your project lead might realize this. You will be prepared.


 

Notes

Further reading, links and resources

Urs Enzler's "Clean Code Cheatsheet" (at planetgeek.ch) Oriented towards OO developers, but expresses sound principles that apply by analogy.


 




 

If in doubt, ask! If anything about this learning unit is not clear to you, do not proceed blindly but ask for clarification. Post your question on the course mailing list: others are likely to have similar problems. Or send an email to your instructor.



 

About ...
 
Author:

Boris Steipe <boris.steipe@utoronto.ca>

Created:

2017-10-13

Modified:

2018-09-12

Version:

1.1

Version history:

  • 1.1 2018 updates
  • 1.0 New unit

CreativeCommonsBy.png This copyrighted material is licensed under a Creative Commons Attribution 4.0 International License. Follow the link to learn more.