Listen

Description

We dig into Google's engineering practices documentation as we learn how to code review while Michael, er, Fives is done with proper nouns, Allen can't get his pull request approved, and Joe prefers to take the average of his code reviews.

In case you're reading this via your podcast player, this episode's full show notes can be found at https://www.codingblocks.net/episode132. Be sure to check it out and join the conversation.

Sponsors

Survey Says

Do you *always* include (new or updated) unit tests with your pull requests?

Take the survey at: https://www.codingblocks.net/episode132.

News

How to Code Review

Code Review Developer Guide

Q: What is a code review?

A: When someone other than the author of the code examines that code.

Q: But why code review?

A: To ensure high quality standards for code as well as helping ensure more maintainable code.

What should code reviewers look for?

Picking the Best Reviewers

In Person Reviews

How to do a Code Review

The Standard of a Code Review

The purpose of the code review is to make sure code quality is improving over time.

Reviewers should favor approving the changes when the code health is improved even if the changes aren't perfect. There's no such thing as perfect code, just better code.

Code that worsens the overall quality or health of a system should not be admitted unless it's under extreme/emergency circumstances.

What constitutes an emergency?

A small change that:

What does not constitute an emergency?
Mentoring

Code reviews can absolutely be used as a tool for mentoring, for example teaching design patterns, explaining algorithms, etc., but if it's not something that needs to be changed for the PR to be completed, note it as a "Nit" or "Note".

Principles
Resolving Conflicts

NEVER let a change sit around just because the reviewer and coder can't come to an agreement.

Resources We Like

Flawless Execution

Tip of the Week