---
id: 20260907-T0-06
title: "工程师热议：糟糕代码没有下限，重写未必是解药"
title_en: "Engineer Debate: Code Has No Bottom, Rewrites Rarely Work"
url: https://ai.daily.yangsir.net/daily/20260907-T0-06
issue_date: 2026-09-07
publish_date: 2026-09-06T09:08:06.000Z
category: insight
source_name: "Simon Willison"
source_url: https://simonwillison.net/2026/Sep/6/theres-no-limit-to-how-bad-code-can-get/
---

# 工程师热议：糟糕代码没有下限，重写未必是解药

一篇题为《There's No Limit to How Bad Code Can Get》的博客在Lobste.rs社区引发讨论，作者Simon Willison在回复中分享了自己的观察：当技术债务堆积到难以承受时，常有人提议推倒重写，但这种做法极少成功。他解释，旧系统并非只是代码问题，而是积累了多年业务逻辑和边缘知识，重写意味着丢失这些沉淀，且新系统同样会随时间腐化。更可行的路径是持续重构、边界隔离和增量替换。这一观点对长期维护老旧系统的开发者颇具参考价值。

## English Version

**Engineer Debate: Code Has No Bottom, Rewrites Rarely Work**

A blog post titled 'There's No Limit to How Bad Code Can Get' sparked debate on Lobste.rs, where Simon Willison argued that rewriting from scratch rarely works when technical debt overwhelms. He contends that legacy systems embed years of accumulated business logic and edge-case knowledge—losing that in a rewrite is costly, and the new system will degrade just the same. He suggests continuous refactoring and incremental replacement instead.

---

**来源**：[Simon Willison](https://simonwillison.net/2026/Sep/6/theres-no-limit-to-how-bad-code-can-get/)

**详情页**：https://ai.daily.yangsir.net/daily/20260907-T0-06

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*