Code Review Flashcards
Remember specific Code Review Checks
1
Q
What structured approach to code reviews can we use?
A
- Start by explaining your process and best practices. (See Google Code Reviews)
- Read entire code and understand. Ask clarifying questions
- Do a line by line review and identify potential: Bugs, Performance, Readability, Logging Exception Handlling
- Data structures, Time & Space Complexity
2
Q
What is the first rule of code reviews?
A
A PR should be approved when it is in a state where it improves the overall health of the system being worked on. Even if it isn’t perfect.
3
Q
Why are code reviews important?
A
- Ensure system quality and health.
- Mentoring and helping engineers level up
- Solidifying team standards
4
Q
How to handle style disputes?
A
The style guide is the absolute authority.
5
Q
What to look for in a code review?
A
- Design
- Functionality
- Complexity
- Operating in production
- Tests
- Naming
- Comments: Why code exists, not what the code does.
- Style / Consistency
- Documentation
6
Q
A
6
Q
A