摘要
软件的修改会不断地产生技术债务,而重构是偿还技术债务的有效方法。对代码重构的作用进行归纳,体现在改进软件设计,帮助理解代码、发现缺陷和提升效率等方面;并分析在添加新功能、修改错误和代码评审这三个重构的时机。
Code refactoring is an effective method to repay technical debt, which caused by the modification to software. Sums up the effects of code refactoring, including improving software design, helping code understanding, defect discovery and increasing efficiency. Analyzes three opportunities for refactoring: while adding new functions, fixing defects, and code review.
关键词
代码重构
软件
技术债务
Code Refactoring
Software
Technical Debt