V2EX  ›  英汉词典

Refactored

释义 Definition

refactoredrefactor 的过去式/过去分词,常用于软件开发语境,指“对(代码)进行重构”:在不改变外部功能/行为的前提下,调整内部结构,使代码更清晰、可维护、可扩展或更高效。(也可泛指对流程/系统进行“重组式改造”。)

发音 Pronunciation (IPA)

/ˌriːˈfæk.tɚd/

例句 Examples

I refactored the function to make it easier to read.
我重构了这个函数,让它更易读。

After the team refactored the legacy codebase, new features could be added with fewer bugs and less risk.
团队重构了这套遗留代码库之后,新功能可以用更少的缺陷和更低的风险进行添加。

词源 Etymology

refactor 由 **re-**(“再次、重新”)+ factor(“因素/组成部分;做分解与组合的处理”)构成。在计算机领域里逐渐固定为术语,强调“重新组织内部结构”,而不是“重写功能”。

相关词 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   ·   995 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 23:31 · PVG 07:31 · LAX 15:31 · JFK 18:31
♥ Do have faith in what you're doing.