V2EX  ›  英汉词典
Enqueued related words: Spaghetti Code

Legacy Code

释义 Definition

遗留代码;旧系统代码:指已存在一段时间、仍在使用但难以理解、维护或修改的代码,通常缺少文档、测试或清晰结构。(有时也泛指“从前人继承下来的代码库”。)

发音 Pronunciation (IPA)

/ˈlɛɡəsi koʊd/

例句 Examples

The new developer spent a week reading legacy code before making any changes.
新来的开发者在动手修改之前,用了一周时间阅读遗留代码。

Because the legacy code had no tests and unclear logic, the team chose to refactor it gradually while keeping the system running.
由于遗留代码没有测试且逻辑不清晰,团队决定在保证系统持续运行的前提下逐步进行重构。

词源 Etymology

legacy 原意为“遗产、遗赠”,来自拉丁语 legare(委托、遗赠);在技术语境中引申为“从过去留下并被继承的”。code 指“代码”。合起来的 legacy code 就是“继承下来的旧代码”,强调其历史包袱与维护难度。

相关词 Related Words

文学与著作 Literary Works

  • Working Effectively with Legacy Code — Michael C. Feathers
  • Refactoring: Improving the Design of Existing Code — Martin Fowler
  • Clean Code — Robert C. Martin
  • The Pragmatic Programmer — Andrew Hunt & David Thomas
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1076 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 17:30 · PVG 01:30 · LAX 09:30 · JFK 12:30
♥ Do have faith in what you're doing.