Do not Lose Friends Because of Code Reviews

First of all, this post contains some thoughts collected over the years in the software industry, working with thousands of engineers worldwide. Most of them were realized after productive discussions about code reviews with some teammates.

So, avoiding losing friends because of code reviews is a challenging job, at least for people that aren’t familiar with the practices below. Sometimes, you sit in the code owner position, and sometimes in the reviewer position. Let’s analyze each one in a simple and straightforward way:

Code Owner Position

Tio Ben has a tip for you:

tio-ben-tip

There’s no way around it if your code doesn’t look good. There’s no magic if your code doesn’t look good. Here are some best practices to deal with it:

The first impression counts! Your Pull Request (PR) presentation should look good as well. These topics may help you:

Last, but not least in code owner scope, give a reasonable time to the reviewers to review. If the time is short, they won’t have a chance to review it efficiently.

Reviewer Position

Before reviewing, pretend that you are the code’s owner too. Here are some best practices, less than for authors, but important in the same way:

That’s it! I hope you don’t lose your friends because of code reviews anymore.