Code review guidelines light the way
Tags: bestpractices, documentation, codereview, softwareengineering
Published: 2020-04-21 11:30:29

---
title: Code review guidelines light the way
published: true
date: 2020-04-21 11:13:27 UTC
tags: best-practices,documentation,code-review,software-engineering
canonical_url: https://medium.com/@dvirsegal/code-review-guidelines-light-the-way-4f05825d9579
---

![](https://cdn-images-1.medium.com/max/1024/0*pFPFW-zcxphYwr7z)<figcaption>Photo by <a href="https://unsplash.com/@williambout?utm_source=medium&amp;utm_medium=referral">William Bout</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption>

#### My humble opinion on the necessity of a check-in process

Are you familiar with the situation of getting a code review that is being delayed by your peer reviewer’s nitpicking for filling his code perfection aspirations? Unable to commit due to build server failure? Personal preferences overruled over technical facts?

![](https://cdn-images-1.medium.com/max/640/0*9Iek0l2zkotlvSZN)<figcaption>Let me see your unit tests — pic: <a href="https://www.reddit.com/r/ProgrammerHumor/comments/av1t8e/code_review/">src</a></figcaption>

All the above are examples of the necessity of a well-defined procedure, guiding us in various situations we encounter daily. It defends our best interest, helps us understand how to handle them based on the collective experience of all SW engineers before us.

In the following lines, I won’t deal with the essential need for code reviews and how to perform them, a fact that being dealt in various articles ([#1](https://www.atlassian.com/agile/software-development/code-reviews), [#2](https://dev.to/sarajchipps/how-to-make-good-code-reviews-better-4ei-temp-slug-4012123), [#3](https://medium.com/palantir/code-review-best-practices-19e02780015f)), even by the humble writer of these lines ([link](https://dev.to/dejavo/every-code-has-its-audience-55e1)). Here, I focus on the crucial need for writing down the day to day team’s code review best practices.

#### Bureaucracy — again 🤦 or Why do we need it?

![](https://cdn-images-1.medium.com/max/577/1*FBtGZFaHUGjHNityhfRrRg.jpeg)<figcaption>Bureaucracy, pic: <a href="https://imgflip.com/i/3vzt2a">src</a></figcaption>

The primary purpose of a code review is to make sure that the overall code’s health is improving over time. For achieving this goal, numerous trade-offs have to be balanced. Hence a well-defined process for both code review parties assists in bridging any gaps, settle down conflicts and allowing to move faster.

Which decreases the chances of something going horribly wrong during implementation. At the end of the day, making the code better without mental investment how to perform it.

#### So, What should it cover?

It really depends on the team, its daily routines, the development environment, the chosen development methodology, and more preferences in which the team has decided to focus.

I highly recommend having a meeting with the entire team to consult what should make it in, since it is an essential part of the SW engineers’ work. It has a significant effect on everyone, reflected in the team’s motivation.

The guidelines should be brief, written in plain simple language, may include graphics (screenshots, etc…), summarizing the team’s (and the organization) best practices.

#### OK, say I’m convinced How do you suggest to maintain it?

It doesn’t matter. just make sure it is written down, either on a document or on a dedicated web-page; there are plenty of ways to share information these days. With one important rule, it should be in a highly accessible location. Otherwise, it will reduce its effectiveness, collect dust and basically not relevant.

![](https://cdn-images-1.medium.com/max/600/0*crsrIukYsdWDaccj)<figcaption>Shared location pic: <a href="http://www.zoytek.co.uk/wp-content/uploads/2015/06/meme-creator-upload-image.jpg">src</a></figcaption>

#### Overall

By doing so, you’ll increase team productivity, improve the codebase quality. And as a by-product of this process, inexperienced engineers will be mentored — leading to a highly effective team, better products, and happier customers.

IMHO, one of the best examples for such a code review guidelines, which covers the above points is the comprehensive document created by [Google Developers](https://medium.com/u/991272e72e68), “[How to do a code review](https://google.github.io/eng-practices/review/reviewer/)”.