VOOZH about

URL: https://thenewstack.io/the-future-stack-of-code-review/

⇱ The Future Stack of Code Review - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2022-10-04 13:00:16
The Future Stack of Code Review
contributed,sponsor-jit,sponsored,sponsored-post-contributed,
CI/CD / Software Development / Tech Culture

The Future Stack of Code Review

Like many engineering practices that have undergone automation, we believe code reviews can be optimized, playing to the disparate strengths of humans and machines.
Oct 4th, 2022 1:00pm by Gabriel L. Manor
👁 Featued image for: The Future Stack of Code Review
Feature image via Pixabay
Jit sponsored this post. Insight Partners is an investor in Jit and TNS.

In today’s traditional code review processes, humans are a big part of how code is reviewed and ultimately committed to production. A person reads and comments on code to ensure it undergoes a peer review and is aligned with engineering processes and best practices.

Code reviews started becoming an integral part of software delivery when code quality became a critical aspect to the business. Peer code reviews were initiated to enable additional “eyes” and input on code, improvements and possibly catch bugs and fixes early before it’s shipped to production.

However, like all aspects of software engineering, even the code review has greatly evolved, and today’s code review needs to ensure a diversity of aspects before code is shipped to production, including:

  • Being aligned with clean code practices
  • Ensuring readability
  • Verifying quality and preventing potential bugs
  • Checking performance
  • Validating security

Each of these individually requires its own unique domain expertise. Not every engineer can be an expert in them all. The reality is that there is so much code and experience available that so much of our code is boilerplate and repetitive — to the extent that we’re witnessing tools like GitHub’s AI programmer CoPilot. While it’s debatable how they trained their models and the code they use, this is quite mind-boggling from a coding perspective and changes the game entirely. If a machine can write working code, then reviewing it should be a no-brainer.

Jit is a self-serve DevSecOps orchestration platform that makes it easy for high-velocity engineering teams, of any size, to achieve continuous security & compliance while increasing dev velocity. Jit implements security-as-code and offers remediation recipes with a Dev-native experience. Jit and TNS are under common control.
Learn More
The latest from Jit

Optimize Processes for Machines and Humans

Like many other engineering disciplines and practices that have undergone automation, we believe that future code reviews too can be optimized, deriving benefits from creating hybrid processes that will play to the disparate strengths of humans and machines in the process.

In the same way that our CI/CD processes and architectures have benefited from tools to automate the many reviews and gates required before shipping and deploying our code to production, code review can also undergo a similar evolution and transformation.

The nature of humans vs. machines highlights another benefit. Humans are subjective, while tools are objective. Sentient people will make quite different decisions and judgment calls that may not even be substantiated in data or common patterns, but subjective and based upon recent experience (Recollection or anchoring bias anyone?).

The future of code reviews, like CI/CD and many other automated processes in engineering, should strive to reverse the paradigm with about 80% performed by tools and machines with 20% human validation and intervention.

The Ideal Code Review Process

Today’s code reviews are for the most part still manual, waiting on a human to pick up a pull request (PR), review it, and then merge it into the codebase to be deployed with the next version. So much of this process is outdated and can be optimized for velocity, with the growing number of tasks and disciplines developers now need to be responsible for.

We believe that like other engineering domains that have evolved and realized many benefits in the form of velocity and efficiency, our code review processes can also be reconsidered with the dawn of new and excellent machines and tools. If we were to think about the ideal (future) code review it would be something like this:

This ideal code review starts manual. A good practice for any automation we’d like to apply: start manual, validate the process, and then automate. With each code review the human reviewer identifies comments for each PR that can be automated and works on implementing or training a tool that can automate this specific validation or check in the next code review.

In this way, the human domain expertise is encapsulated in the automation we apply and is not simply comprised of simple machine-driven tests that aren’t based upon human experience.

Of course, good tools like linters, scanners and more already exist to ensure repetitive and common errors, misconfigurations and other poor coding practices do not reach a PR or production code. A best practice is to use these as part of other automated checks, even before they reach the code review.

Minimizing Noise in Automated Code Reviews

We know what you’re thinking: More automation = more noise. Like all automation and machine-based tooling, this, too, could create too much noise for each PR, which would cause humans to skip them. So how can we prevent automated code reviews from creating too much noise for engineers already suffering from alert fatigue, all while maintaining velocity?

The key to reducing noise is with aspects of remediation. Information is great, but it doesn’t help me if I don’t actually know how to resolve the issue. This is where intelligent auto-remediation comes in. (Without compromising safety of course).

Here we would apply the knowledge a previous reviewer embedded into the system, through more conversational interaction (such as a bot) that serves as an automated code reviewer without bypassing the human intervention and final push to production. This is for the “hard skills” perspective, quality, styling, bugs and misconfiguration.

But there is also the “soft skills” value that code review brings into engineering organizations that can’t and should not be overlooked, and might even provide the greatest value when it comes to code review. I recently asked on Twitter, what the purpose of code reviews are, and was surprised by some of the feedback, including this particular response:

In one word. what is the purpose of Code Review?

— Gabriel L. Manor (@gemanor) September 4, 2022

code quality = linting, domain knowledge, and technical expertise.

the first covered by robots, the second covered by mentoring. mentoring creates code quality, but not the other way around.

— Boris Cherkasky (@cherkaskyb) September 4, 2022

While we can always leverage tools, robots and machines for repetitive and simple tasks, these tools lack the ability to provide true learning and mentoring, one of the most important aspects in code review, to some engineering managers.

An example of a way that we can use both the humans and robots in the process to derive the utmost value from each is by leaving the “nitpicking” and minor fixes — from typos to APIs that lack important headers — to be enforced by the machines and automated scans.

The human in the process can provide input and insight that is aimed at greater improvement, skilling up and mentorship, that is based on human expertise. They can provide comments to help create more performant code or elegant and clean code, than just making sure it works as it should and has no typos or misconfigurations.

When we add tools that give us greater context about the criticality of this piece of code to our systems, have the machines provide the repetitive fixes, and let the humans provide the added layer of insight to how these fixes can affect our systems as a whole, we can grow and learn and gain greater perspective from the review.

Imagine how much more useful this is to the engineer whose code is being reviewed and the greater trust they’ll have in the review process when they receive such a holistic overview of both the code and its context within the systems.

Jit and the Next-Gen of Code Review

One of the core things that security as code (SaC) ultimately enables is automation, and this is the engineering mentality that Jit is striving to take an active part in driving. By exposing security plans as code, the security gates that are now critical as part of the code review process are much easier to automate and ultimately resolve with minimal human intervention. This frees up humans to review the truly complex problems and leaves the repetitive manual checks to machines.

Another area that is gaining momentum is re-examining PR processes in general, and rethinking whether all PRs should receive the same human attention. Today there are many tools looking to streamline PR management, like LinearB’s gitStream or MergeQueue.

These tools enable you to create smart rules to skip human review on PRs that don’t require the same level of scrutiny — config and version updates, documentation edits and such. These should also become integral parts of the future code review.

Manual code review processes can also be automated to handle the parts machines are better equipped to fix than humans.

With the growing complexity of software delivery, let’s reserve our human time for the places where humans can provide the most value and harness machines for the repetitive tasks they excel at.

Jit is a self-serve DevSecOps orchestration platform that makes it easy for high-velocity engineering teams, of any size, to achieve continuous security & compliance while increasing dev velocity. Jit implements security-as-code and offers remediation recipes with a Dev-native experience. Jit and TNS are under common control.
Learn More
The latest from Jit
TRENDING STORIES
Gabriel is a senior full-stack developer with a favorite kid named Frontend. For over 10 years now, he’s enjoyed writing clean code, simplifying complex problems, leading feature development and influencing innovation every day. When not busy with code, you’ll find...
Read more from Gabriel L. Manor
Jit sponsored this post. Insight Partners is an investor in Jit and TNS.
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Pragma, Jit.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.