← Psychology
Psychology/8 min read
The Psychology of Code Review
Understanding human behavior to give and receive better code feedback.
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
- Ask questions instead of making demands
- Explain the "why" behind suggestions
- Acknowledge what's done well
Receiving Feedback
- Separate your identity from your code
- Assume positive intent
- 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.