Code Review
Also known as: pull request review, pr review
Reviewing someone else's proposed code change before it lands — the most reliable practice for catching bugs and spreading knowledge in teams.
- Primary domain
- Software Development Process
- Sub-category
- Programming Team Dynamics
In simple terms
Code review is the practice of having another engineer read your proposed change before it’s merged. They check for bugs, ask questions, suggest improvements, and learn what’s changing in the codebase. Done well, it catches issues that no test would have caught and makes the whole team smarter.
More detail
The dominant workflow today is the pull request (or merge request) on GitHub, GitLab, Bitbucket, or similar:
- A developer pushes a branch and opens a PR with a description.
- Automated checks run (lint, tests, security scans).
- One or more reviewers read the diff, comment, and either approve or request changes.
- The author addresses feedback in new commits.
- Once approved and green, the PR is merged.
What good reviewers look for:
- Correctness — does it do the right thing? Edge cases?
- Design — does the change fit the codebase?
- Tests — is the change covered? Will the tests catch a regression?
- Readability — would a future engineer understand this?
- Safety — concurrency bugs, security issues, error handling.
- Performance — only when it matters.
What good reviewers avoid:
- Bikeshedding on style (let formatters and linters decide).
- “I would have written it differently” without a concrete reason.
- Demanding the author address everything in one round; trust them.
What good authors do:
- Keep PRs small and focused (a few hundred lines, one change).
- Write a clear description: what changed, why, what to look at first.
- Self-review before requesting review.
- Respond to every comment, even with just “done” or “good point, fixed in 3a1b9”.
Why it matters
Code review is the highest-ROI engineering practice that doesn’t require new tooling. It catches bugs, distributes knowledge so no module has a single point of failure, and continuously enforces the team’s standards by example.
Real-world examples
-
An open-source contribution to a major project is almost entirely shaped by review feedback.
-
A bug that would have taken an hour to debug is spotted in 5 seconds by a reviewer.
-
Pair programming is, in effect, real-time code review.
-
The DORA research consistently finds that peer code review correlates with both higher delivery performance and higher developer well-being — one of the few practices that improves both.
Common misconceptions
- “Review is for finding bugs.” It’s at least as much about teaching, knowledge sharing, and design alignment.
- “Only senior people review.” Anyone can leave a useful comment; reviewing other people’s code is one of the fastest ways to grow.
Learn next
What review usually flows through: version control and Git. The other major reliability practice: testing.
Read this in a learning path
All paths →This topic is part of 2 learning paths. Start in context to keep prev/next and progress tracking.
- Read this in Backend Engineer Starter KitThe minimum set of topics that turns a programmer into someone who can ship and operate a backend service in production. Start here View the whole path
- Read this in Software Engineering PracticesThe discipline behind writing code that teams can maintain, test, and evolve — from version control to deployment pipelines. Start here View the whole path
Relationships
- Requires
- Related
- Required by
Neighborhood
A visual companion to the relationships above. Click any node to visit that topic.