I Am Code Review
(And So Can You!)
2
What IS NOT a Code Review?
What are Code Reviews?
3
Why Do Code Reviews?
4
The Economic Impacts of Inadequate Infrastructure for Software Testing
National Institute of Standards and Technology, May 2002
https://www.nist.gov/sites/default/files/documents/director/planning/report02-3.pdf
Why Do Code Reviews? (cont)
5
Conducting a Code Review
Author:
6
Conducting a Code Review
Reviewer:
7
Keep It Professional
8
9
Common Issues
Vague or repeated variable and function names
10
Common Issues
Not utilizing types in Typescript
11
Common Issues
Not utilizing types in Typescript
Improved by adding the User type
Bonus advantage: IDE parameter hints in realtime
12
Common Issues
Insufficient or nonexistent error handling
Insufficient:
Much Improved:
13
Common Issues
Misusing observables
14
Common Issues
Duplicated code
15
Common Issues
Too much going on in one file.
16
Let’s Review Some Code!
Example 1
17
Let’s Review Some Code!
Example 2
18
Let’s Review Some Code!
Example 3
19
Let’s Review Some Code!
Example 4
Resources
20
https://blog.fullstory.com/what-we-learned-from-google-code-reviews-arent-just-for-catching-bugs/
https://blog.fogcreek.com/effective-code-reviews-9-tips-from-a-converted-skeptic/
https://blog.fullstory.com/what-we-learned-from-google-code-reviews-arent-just-for-catching-bugs/
https://blog.asana.com/2016/12/7-ways-to-uplevel-your-code-review-skills/
https://blog.digitalocean.com/how-to-conduct-effective-code-reviews/
https://mtlynch.io/human-code-reviews-1/