V2EX  ›  英汉词典

Refactoring

释义 Definition

(软件工程)重构:在不改变外部可观察行为的前提下,改进代码的内部结构与设计,以提升可读性、可维护性、可扩展性并降低技术债。

发音 Pronunciation (IPA)

/ˌriːˈfæk.tər.ɪŋ/

例句 Examples

I spent the afternoon refactoring the login code.
我花了一下午重构登录代码。

After refactoring the legacy module, the team reduced bugs and made future features easier to add without changing the app’s behavior.
重构旧模块后,团队减少了缺陷,并在不改变应用行为的情况下让后续功能更容易加入。

词源 Etymology

由 **re-**(再次、重新)+ factor(要素、构成因素;在此可理解为“重新整理构成方式”)+ -ing(动名词)构成。该词在软件开发语境中常指对代码结构进行“重新组织”,强调改进内部实现而不改变对外功能表现。

相关词 Related Words

文学与著作中的用例 Literary Works

  • Refactoring: Improving the Design of Existing Code(Martin Fowler)
  • Clean Code: A Handbook of Agile Software Craftsmanship(Robert C. Martin)
  • Working Effectively with Legacy Code(Michael Feathers)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   3933 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 02:55 · PVG 10:55 · LAX 18:55 · JFK 21:55
♥ Do have faith in what you're doing.