What is code review?
Code review is the practice of having other engineers read a change before it is merged. Good reviews find bugs, design problems and security issues early, and spread knowledge across the team.
Every software engineer reviews code, but few are taught how. Strong reviewers are valued because they raise the quality of the whole team, not just their own work.
How to use this Code Review roadmap
Apply each step to real pull requests at work or in open-source projects. Reading and commenting on real changes is the only way to build review skill.
Keep notes on comments that changed something important. They show you what to look for next time.
1Step 1: Writing reviewable changes
Good reviews start with good pull requests.
What is it?
Small, focused pull requests with clear descriptions get faster, better reviews.
What to learn
Aim for pull requests under about 400 changed lines. Review quality drops sharply on bigger ones.
Learn each topic here
Small pull requests
One logical change per PR.
Why it matters: Easier to understand and review.
Clear descriptions
What changed, why, and how to test it.
Why it matters: Saves reviewer time.
Self-review
Read your own diff before asking others.
Why it matters: Catches obvious issues.
Commit hygiene
Meaningful commits and messages.
Why it matters: Clear history.
Stacked changes
Split big features into dependent PRs.
Why it matters: Large work stays reviewable.
Example
markdown
## What
Adds VAT (5%) to checkout totals.
## Why
UAE invoices must show VAT separately (ticket PAY-212).
## How to test
1. Add item AED 100 to cart
2. Checkout shows VAT AED 5, total AED 105
## Notes
Rounding uses banker's rounding to match finance reports.A PR description that tells reviewers what matters.
Helpful resource: Google engineering practices: the CL author’s guide
2Step 2: What to look for
Know where problems hide.
What is it?
Reviewers check correctness first, then design, readability, tests, security and performance.
What to learn
Review in passes: first understand the goal, then check logic, then details.
Learn each topic here
Correctness
Does the code do what it claims, including edge cases?
Why it matters: Bugs are the top concern.
Design
Does it fit the system and keep things simple?
Why it matters: Prevents long-term mess.
Tests
Do tests cover the change and real edge cases?
Why it matters: Protects future changes.
Readability
Names, structure and comments that explain why.
Why it matters: Code is read far more than written.
Security and performance
Input handling, secrets, queries in loops.
Why it matters: Costly issues caught early.
Example
python
# Review comment on this line:
for order in orders:
customer = db.get_customer(order.customer_id) # N+1 query
# "This runs one query per order. Could we load customers in one query
# (e.g. get_customers(ids)) before the loop?"Spotting an N+1 database query and suggesting a fix.
Helpful resource: Google: what to look for in a code review
3Step 3: Giving and receiving feedback
Reviews are a conversation between people.
What is it?
How you write comments decides whether feedback helps or hurts. Clear, kind and specific comments get better results.
What to learn
Label comments by importance, such as "blocking", "suggestion" or "nit".
Learn each topic here
Comment on code, not people
Talk about the change, not the author.
Why it matters: Keeps trust.
Explain why
Give reasons and, when useful, links or examples.
Why it matters: People learn, not just comply.
Severity labels
Blocking, non-blocking, nit and question.
Why it matters: Authors know what must change.
Praise good work
Point out clever or clean solutions.
Why it matters: Encourages good habits.
Receiving feedback
Ask questions, avoid defensiveness and say thanks.
Why it matters: Faster improvement.
Example
text
Blocking: This endpoint returns the full user object, including phone and email. Could we use UserPublic here so we only send name and avatar?
Nit: `tmp2` -> maybe `vatAmount` for clarity.
Nice: the retry helper with jitter is really clean.Labelled comments that are clear, specific and kind.
Helpful resource: Conventional Comments
4Step 4: Automation and tooling
Let machines handle the boring parts.
What is it?
Formatters, linters, type checkers, tests and security scanners in CI remove style debates and catch common bugs before a human looks.
What to learn
If you keep writing the same comment, automate it with a lint rule.
Learn each topic here
Formatters
Prettier, Black, gofmt and similar.
Why it matters: No more style comments.
Linters and type checks
ESLint, Ruff, mypy, TypeScript strict mode.
Why it matters: Catch bugs automatically.
CI checks
Tests and builds required before merge.
Why it matters: Reviewers focus on logic.
Code owners
Automatic reviewer assignment by file path.
Why it matters: Right experts review.
Review tooling
GitHub, GitLab or Gerrit features such as suggestions and required approvals.
Why it matters: Smoother workflow.
Example
yaml
# .github/CODEOWNERS
/payments/ @org/payments-team
/infra/ @org/platform-team
*.sql @org/data-reviewersCode owners route reviews to the right people automatically.
Helpful resource: GitHub pull request docs
5Step 5: Reviewing AI-written code
A new and growing part of the job.
What is it?
AI tools now write a large share of code. Reviewers must check it with extra care for subtle bugs, invented APIs, security gaps and code that looks right but is not.
What to learn
Ask the author to explain any AI-written logic they changed. If they cannot, it is not ready.
Learn each topic here
Hallucinated APIs
Functions or options that do not exist.
Why it matters: Fails at runtime.
Plausible but wrong logic
Code that reads well but mishandles edge cases.
Why it matters: Hard to spot quickly.
Security gaps
Missing auth checks, unsafe queries, secrets in code.
Why it matters: AI often skips these.
Over-engineering
Extra abstractions and unused code.
Why it matters: Harder to maintain.
AI review assistants
Tools that pre-review PRs, with humans making final calls.
Why it matters: Faster first pass.
Example
text
AI-code review checklist
[ ] Every imported function exists in our versions
[ ] Edge cases: empty, null, large input, timezones
[ ] Auth and permission checks present
[ ] No unused helpers or dead code
[ ] Tests written or reviewed by a humanA short checklist for reviewing AI-generated changes.
Helpful resource: Claude Code best practices
6Step 6: Leading review culture
Expert level: make reviews work for the whole team.
What is it?
Senior engineers set review norms, measure review health, mentor reviewers and balance speed with quality.
What to learn
Track time to first review. Slow reviews block teams more than most other problems.
Learn each topic here
Review norms
Expected response times, approval rules and etiquette.
Why it matters: Shared expectations.
Review metrics
Time to first review, PR size and rework rate.
Why it matters: Find bottlenecks.
Mentoring reviewers
Pair reviews and feedback on comments.
Why it matters: Grow the team.
Risk-based review
More scrutiny for payments, auth and data changes.
Why it matters: Effort where it matters.
Blameless culture
Reviews as learning, not gatekeeping.
Why it matters: People share work early.
Example
text
Team review agreement
- First review within 4 working hours
- PRs over 400 lines need a reason in the description
- 2 approvals for payments/ and auth/
- Nits never block merge
- Monthly: review metrics + one retro on review qualityA short agreement that makes review expectations clear.
Helpful resource: Google eng-practices
Code Review roadmap project ideas
Code review projects are best shown as before-and-after examples and measured team improvements.
PR description rewrite
Three improved PR descriptions.
Personal checklist
A review checklist tested on ten PRs.
Labelled reviews
Reviews using severity labels with author feedback.
Automation setup
Formatter, linter, type checks and code owners.
AI code audit
A documented review of AI-generated code.
Team review agreement
Metrics, norms and measured improvement.
Tips to finish this code review roadmap
- Review promptly. Fast reviews keep the team moving.
- Be kind and specific. Tone matters as much as content.
- Automate style. Save human attention for logic.
- Review to learn. Reading others’ code is great training.
Career paths and next steps
Strong review skills are expected for senior engineer, staff engineer, tech lead and engineering manager roles. They are often discussed in interviews for senior positions.
Next, study software design, system design and testing to sharpen what you look for.
Related roadmaps
Code Review Roadmap FAQs
What should I look for in a code review?
Correctness, design, tests, readability, security and performance, in roughly that order.
How long should a code review take?
Most reviews of small PRs take 15 to 60 minutes. Very large PRs should be split.
How do I give feedback without upsetting people?
Comment on the code, explain why, label importance and point out good work too.
Can AI do code review?
AI can help with a first pass, but a human should make the final call, especially for security and design.