Code Review Flashcards

Remember specific Code Review Checks

1
Q

What structured approach to code reviews can we use?

A
  1. Start by explaining your process and best practices. (See Google Code Reviews)
  2. Read entire code and understand. Ask clarifying questions
  3. Do a line by line review and identify potential: Bugs, Performance, Readability, Logging Exception Handlling
  4. Data structures, Time & Space Complexity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why are code reviews important?

A
  1. Ensure system quality and health.
  2. Mentoring and helping engineers level up
  3. Solidifying team standards
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to handle style disputes?

A

The style guide is the absolute authority.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly