Operations and security 4 min read Updated
Code review that helps rather than blocks
In short
A useful code review checks whether a change improves the overall health of the code, and it stays fast when changes are kept small.
A developer sends a change and waits for someone to read it. A code review is the moment a second person checks the change before it is merged into the main branch. Done well, it catches problems early and spreads knowledge across the team. Done badly, it becomes a queue that nobody has time to clear. The guidance below comes from Google’s engineering practices guide for code review. Start with whether the change fits the system.
Reviewers check eight areas and two questions
The guide splits a review into eight areas: design, functionality, complexity, tests, naming, comments, style and documentation. Two practical questions sit behind them: whether the change is well designed for the system, and whether other developers will understand and use the code easily in future. A good review answers both for each area in turn. The reviewer does not rewrite the change in their own style, and does not hold a small change to a standard that the surrounding code does not meet.
Approve once the change improves code health
The guide asks reviewers to favour approval once a change clearly improves the overall health of the code, even if it is not perfect. Code health is how maintainable and understandable the system stays over time. The aim is that it does not decline with each change, and ideally that it improves. A reviewer can still refuse approval, for example when a change adds a feature nobody wants. Code written in a pair counts as reviewed if the partner was qualified to review it well.
Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea
Keeping changes small
A good change is self-contained and addresses just one thing. The guide gives rough limits, not rules. About 100 lines is usually a reasonable size, and about 1000 lines is usually too large. The number of files matters too, so a modest number of lines spread across many files can still be too big. A reviewer may reject an oversized change and ask for it to be split.
Small changes have three benefits: they are reviewed more quickly and more thoroughly, and they are less likely to introduce bugs. They also merge more easily, and less work is lost if a change is rejected.
Reply within one business day
The guide sets one business day as the longest a reviewer should take to respond to a review request. A reviewer should not interrupt focused work for a review. They should wait for a natural break and respond then. If there is no time for a full review, a short reply saying when it will happen, or a suggestion of another reviewer, still helps. Small changes help here too, because they fit into short gaps between other work more easily than one large change does.
A checklist for reviewers
- Check that the change does one thing and that its description says so.
- Judge the design first, and decide whether the change fits the system.
- Check functionality and tests against the behaviour the author intends.
- Look at complexity, naming, comments and documentation.
- Approve the change once it clearly improves code health, even if it is not perfect.
- Respond within one business day, or say when you will.
A change that reaches production should follow the steps in the article on releases and rollbacks. The version number and the changelog entry that records the change are covered in the article on versions and changelogs. Updates to third-party code, which also need review, are covered in the article on keeping dependencies up to date.
A summary of Google’s practices for code review. The guidance comes from those practices, so adapt the thresholds, such as line counts and response times, to your team and your tools.
Common questions
- Should a reviewer approve imperfect code?
- Yes, if the change clearly improves the overall health of the code. The guide favours approval over perfection, but a reviewer can still refuse a change that does not belong in the system.
- How big should a change be?
- The guide suggests that about 100 lines is usually reasonable and about 1000 lines is usually too large. The number of files matters as well.
- What should I do if I am too busy to review?
- Send a short reply saying when you will review, or suggest another reviewer. Wait for a natural break rather than interrupting focused work.
Sources
- Code Review Developer Guide, Google Engineering Practices. Accessed 24 November 2026
- The Standard of Code Review, Google Engineering Practices. Accessed 24 November 2026
- Small CLs, Google Engineering Practices. Accessed 24 November 2026
- Speed of Code Reviews, Google Engineering Practices. Accessed 24 November 2026
Further reading
-
Service levels and error budgets
A service level objective sets a measurable reliability target, and the error budget is the amount of failure that target still allows.
-
Versions and changelogs that readers can follow
Raise MAJOR for incompatible public changes, MINOR for compatible new features and PATCH for compatible fixes, and record each release in a changelog people can read.
-
Background queues, retries and dead-letter jobs
Moving slow emails, PDF invoices or webhook syncs off the HTTP request thread is only step one. Make workers idempotent, space out retries with jitter and route permanent failures to a dead-letter queue.
Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea