Refactoring is the process of enhancing the structure of existing code without altering its functionality. In older codebases, this practice was often neglected due to the absence of tests that covered the code. Consequently, modifying the code was risky, as it could easily introduce bugs. As a result, the common approach was to avoid refactoring and instead add new features wherever it seemed feasible.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Refactoring

  • Marco Gähler

摘要

Refactoring is the process of enhancing the structure of existing code without altering its functionality. In older codebases, this practice was often neglected due to the absence of tests that covered the code. Consequently, modifying the code was risky, as it could easily introduce bugs. As a result, the common approach was to avoid refactoring and instead add new features wherever it seemed feasible.