Refactoring
摘要
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.