Psychology
Psychology/8 min read

The Psychology of Code Review

Understanding human behavior to give and receive better code feedback.

Artiphishle|
code-reviewcommunicationteams

The Psychology of Code Review

Code review is as much about people as it is about code.

The Ego Problem

Code feels personal. Criticism of code often feels like criticism of self.

Giving Feedback

    1. Ask questions instead of making demands
    2. Explain the "why" behind suggestions
    3. Acknowledge what's done well

Receiving Feedback

    1. Separate your identity from your code
    2. Assume positive intent
    3. Ask for clarification, not justification

The Bystander Effect

In large PRs, everyone assumes someone else will review thoroughly. Keep PRs small.

Psychological Safety

Teams with high psychological safety catch more bugs and ship faster.