5 Legacy Code Distortions
1. The "Don't Touch" Fallacy
Thought: "If I touch it, I'll break something."
Reframe: "Tests + gradual changes = safe exploration."
2. Catastrophic Breakage
Thought: "The whole system will collapse."
Reframe: "Start with characterization tests, then refactor."
3. "I'm Not Smart Enough"
Thought: "The original author understood this. I don't."
Reframe: "Understanding is a process, not a fixed state."
4. The "It Works" Trap
Thought: "It works in production. Don't risk it."
Reframe: "Technical debt is a risk too. Make it safer to change."
5. "I Should Rewrite It"
Thought: "Just rewrite from scratch."
Reframe: "Small, safe refractions first. Big rewrites are a last resort."
The 5-Minute Reframe
- Notice: "I'm feeling frozen about this legacy module."
- Identify: "This is the Don't Touch Fallacy + Catastrophic Breakage."
- Evidence: "Have I written characterization tests? Read the code carefully?"
- Reframe: "Tests are my safety net. Start with one small test."
- Action: Write ONE characterization test for current behavior.
Free Tools
| Tool | Purpose |
|---|---|
| CBT for Legacy Code | 6 distortions + interactive thought record |
| Thought Record | Capture and reframe thoughts |
855 free CBT tools — 2026
Top comments (0)