Code Review - Etiquettes

Table of Content

General

Right Mindset

Dedicated time slot for review

The team should daily dedicated time slot for code review.

For example, morning 10.30 to 11 am, all will do the dedicated code review if they have assigned one.

Block calendar of the team to do so for timely and quality code reviews.

If we don’t follow such conventions, gate-keepers of the code might try to slow the speed of code merges. It might happen because either they are busy or lazy or political this could result in a dangerous tool to slow down someone’s space of changes.

The above convention eliminates such tactics and helps for speedy, efficient code reviews in a timed fashion.

Avoid Silos

Avoid code brother’s environment so no two persons always review each other’s code.

No islands of coder and reviewers.

Avoid conflicts

The team should have a consensus on general topics like

Before CR

Self-Review

Commit Size

Background Information

Choosing Reviewers

Deadlines

In CR

Don’t be evil

instead, comment like this

use XYZ to increase performance by 2x.

return this from function in case of error

Understand constraints

Handling the Comments

Conflict Resolution

After CR

After CR approved

If CR rejected

Share this: