How To Scale Code Reviews
You are now 161,001+ subscribers strong. Let’s try to reach 162k subscribers by 30 July. Share this post & I'll send you some rewards for the referrals. Get my system design playbook for FREE on newsletter signup: This post outlines tips for reviewing code. You will find references at the bottom of this page if you want to go deeper.
Once upon a time, there was a 2-person startup. Yet they had a tiny website and only a few customers. So they merged the code directly into the main branch. But one morning, their site became extremely popular. And the number of customers and feature requests started to skyrocket. So they hired more developers and implemented extra features. Yet each developer wrote code with their personal preferences. Thus worsening the code quality and standards. Also increasing the number of bugs. So they started doing code reviews before merging new code into the codebase. A code review means someone other than the author reviews the code. Although it temporarily solved their code quality problem, there were newer issues. Here are some of them: 1. Developer VelocityThey followed a strict review process and spent time on minor issues. Put simply, they asked for low-priority changes on a tight deadline ticket. It means delayed pull requests and slow developer velocity¹. Besides having teams across different time zones worsened the situation. 2. Personal ConflictThey didn’t have set guidelines for code reviews. So developers forced their personal preferences during reviews. It means unnecessary disagreements and demotivated developers. Also feedback with a toxic and mean tone made things worse. 3. MiscommunicationThere’s a risk of misunderstanding feedback in remote or asynchronous reviews. Also a reviewer must understand new code and how it works with the codebase. So the reviewer might get overloaded with code reviews and parallel development tasks. Besides the reviewers might miss bugs even with thorough reviews, especially in large pull requests. Onward. I’m happy to partner with CodeRabbit on this newsletter. I’ve seen code reviews delaying feature deliveries by days and overloading reviewers. I genuinely believe CodeRabbit solves this problem. How to Do Code ReviewLet’s dive in: 1. Best PracticesBoth the author and the reviewer should respect each other’s time and efforts. Here are some guidelines for the code author:
Code reviews are each software engineer's responsibility. Here are some guidelines for the reviewer:
Remember, code reviews are about making progress and not perfection. So just make sure each change maintains or improves the codebase's health. Let’s keep going! 2. Code Review FlowVersion control platforms, such as GitHub and GitLab, include pull request features for code review. They allow inline comments, approvals, and automated checks. Also there is peer review software, such as Gerrit, for advanced workflows. Here’s the code review workflow from a developer perspective:
Continuous integration means merging code changes regularly into a central repository. While Continuous deployment is about automatically releasing changes that pass checks into production. CodeRabbit is an AI code review tool to reduce developer workload. Here’s how it helps with code review flow:
Put simply, CodeRabbit complements human reviewers. It serves 1+ million repositories and has reviewed over 10 million pull requests. And it remains the most installed app on GitHub and GitLab. Subscribe to get simplified case studies delivered straight to your inbox: Want to advertise in this newsletter? 📰 If your company wants to reach a 160K+ tech audience, advertise with me. Thank you for supporting this newsletter. You are now 161,001+ readers strong, very close to 162k. Let’s try to get 162k readers by 30 July. Consider sharing this post with your friends and get rewards. Y’all are the best. References1 Speed and efficiency of delivering high-quality software. 2 Rules for writing clean, consistent, readable code. 3 Proposal for merging code changes into the main branch. 4 Checks code for errors, bugs, and style issues without running it. 5 Checks code for style errors and formatting issues. Share this post & I'll send you some rewards for the referrals. |







