💬 观点Simon Willison
There's No Limit to How Bad Code Can Get — Simon Willison 谈为何推倒重写常失败,建议用迁移和测试治理技术债。
Simon Willison 谈为何推倒重写常失败,建议用迁移和测试治理技术债。
2026-09-06原文
本文为要点摘要,完整细节以原文为准。
🧭 一图看懂
由原文自动提炼 · 以原文为准点击任一分支,查看这一点的一句话解读
推倒重写为何常失败
旧系统仍在跑核心业务,重写期间技术债继续累积
- 旧系统是移动靶,仍需持续加功能
- 维护者只做最小改动,债越堆越高
- 新团队起步快但逐渐发现无人真正懂旧系统
⚙️ 流程拆解
STEP 1宣布旧系统债台高筑
STEP 2组建团队从头重写
STEP 3旧系统继续承载业务
STEP 4新系统只覆盖部分功能
STEP 5两套系统并存
STEP 6优先级变化后重写被弃
🔗 涉及的概念与玩家
- Simon Willison人物
- Will Larson人物
- Migrations: the sole scalable fix to tech debt概念
- technical debt概念
- greenfield replacement概念
- automated testing方法
- targeted refactors方法
- Simon Willison—反对→greenfield replacement
- Simon Willison—建议→automated testing
- Simon Willison—建议→targeted refactors
- Will Larson—撰写→Migrations: the sole scalable fix to tech debt
- greenfield replacement—加剧→technical debt
- automated testing—治理→technical debt
- 推倒重写常失败:旧系统仍在运行核心业务,改动不可避免,但开发者因系统将被替换而缺乏动力,技术债继续累积。
- 新系统团队低估旧系统复杂度,因文档和测试缺失,难以全面理解行为,导致交付延迟,最终被迫只处理部分功能,形成双系统并存。
- 更优策略是加固旧系统:增加自动化测试,进行针对性重构,而非追求绿地重写。这符合 Will Larson 的迁移理念,对开发者意味着应优先考虑渐进式改进。
原文:There's No Limit to How Bad Code Can Get · 作者 Simon Willison
🕸 顺着图谱继续读
- What blog posts influenced your thinking the most? — Simon Willison 列出三篇塑造他技术思维方式的博客文章,并解释各自的2026-09-14 · 共同涉及 Simon Willison、Will Larson、Migrations: the sole scalable fix to tech debt
- SF October 14th: A Birds of a Feather Session on — Simon Willison 与 Jesse Vincent 办一场 codin2026-09-23 · 共同涉及 Simon Willison
- Claude Opus 5.5, GPT-6 Sol, GPT-6 Luna, and a new price — 一天内三家发新模型,价格战打到每百万 token 一毛钱,但 Opus 5.5 2026-09-22 · 共同涉及 Simon Willison
- llm-anthropic 0.29 — Simon Willison 发布 llm2026-09-22 · 共同涉及 Simon Willison