---
title: "The Tests Are Passing, Why Would I Read The Diff Again?"
description: "Code review reduces defects largely because explaining code to another person exposes gaps in understanding, much as writing comments or rubber duck debugging does."
url: "https://swe.quest/articles/the-tests-are-passing-why-would-i-read-the-diff-again-a7df681d6f6e3587"
canonical: "https://clickhouse.com/blog/the-tests-are-passing-why-would-i-read-the-diff-again"
source: "ClickHouse"
published: "2021-04-14"
difficulty: "medium"
kind: "Opinion"
reading_minutes: 10
tags: ["code-review","documentation","debugging"]
---

# The Tests Are Passing, Why Would I Read The Diff Again?

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2021-04-14, 10 min read, Opinion. Original: [https://clickhouse.com/blog/the-tests-are-passing-why-would-i-read-the-diff-again](https://clickhouse.com/blog/the-tests-are-passing-why-would-i-read-the-diff-again)

## Summary

Code review reduces defects largely because explaining code to another person exposes gaps in understanding, much as writing comments or rubber duck debugging does. Reviewers should focus less on style and gatekeeping and more on whether the code is understandable. They should ask for clarification when something takes effort to follow and make sure the answers end up in the code and comments rather than staying in the conversation. Authors should do design review first, write introductory and why-focused comments, document data structures and invariants, and back comments with assertions and tests. The post also rebuts the "self-documenting code" and "comments go stale" objections to heavy commenting.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Code review](https://swe.quest/tags/code-review.md) (Engineering practices)
- [Documentation](https://swe.quest/tags/documentation.md) (Engineering practices)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)

## Keywords

ClickHouse, rubber duck debugging

## Related posts

- [On the Importance of Pull Request Discipline](https://swe.quest/articles/on-the-importance-of-pull-request-discipline-bc0f7e3942802cb3.md): Shopify Engineering · 2022-10-13 · Medium · 13 min read · Code review, Version control, Developer productivity
  Well-structured pull requests make code review easier and leave a self-documenting history that speeds debugging and rollbacks.
- [Code Review Can Be Better](https://swe.quest/articles/code-review-can-be-better-2739fb600c90a5b6.md): TigerBeetle · 2025-08-04 · Medium · 4 min read · Code review, Version control, Developer tools
  TigerBeetle shelved git-review, an experiment that stored code review as a single commit of inline marked comments on top of the PR branch, edited by author and reviewer and reverted once all threads were resolved.
- [It Takes Two to Contract](https://swe.quest/articles/it-takes-two-to-contract-371fa399d9d81617.md): TigerBeetle · 2023-12-27 · Medium · 6 min read · Zig, Testing, Consensus, Distributed systems, Language design
  Design by contract mostly reduces to types and assertions, but a real contract needs two parties: the same condition asserted at both the definition site and the call site.
- [Keeping code moving with clearer review expectations](https://swe.quest/articles/keeping-code-moving-with-clearer-review-expectations-053fec0d580ce694.md): Sourcegraph · 2026-11-10 · Medium · 4 min read · Code review, AI agents, Developer productivity, AI for coding
  Sourcegraph is experimenting with an AI agent that routes each pull request to one of three review paths: Ship (no review), Show (review after merge) or Ask (review before merge).
- [Design system annotations, part 2: Advanced methods of annotating components](https://swe.quest/articles/design-system-annotations-part-2-advanced-methods-of-annotating-components-10641335427d3115.md): GitHub Engineering · 2025-05-09 · Medium · 9 min read · Design systems, Accessibility, Frontend
  Design system teams can build their own "Preset annotations": Figma annotation components that carry accessibility details not conveyed visually, in component properties, or in code.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
