Nota: A tradução desta entrada está atualmente em revisão de qualidade, portanto parte do conteúdo é exibida temporariamente apenas em inglês.
Este verbete ainda não foi traduzido para o seu idioma, portanto o original é exibido abaixo.
refactoring
This term describes a surgical approach to software development where the internal structure of the code is cleaned and optimized while the observable functionality remains identical. It is a preventative measure against software rot, focusing on the long-term health of a system rather than the immediate addition of new features.
In professional environments, it is often contrasted with rewriting. While a rewrite discards the old system to start fresh, refactoring evolves the existing system through small, incremental changes. It is typically associated with a high degree of discipline, requiring comprehensive test suites to ensure that no regressions are introduced during the process.
Meanings
Examples
The team spent the entire sprint on refactoring the legacy codebase.
I need to spend some time refactoring this function because it has become too complex.
Continuous refactoring is essential to prevent the accumulation of technical debt.
Continuous refactoring is essential to prevent the accumulation of technical debt.
We should prioritize refactoring over adding new features for this cycle.
The code is working but it is a mess so it needs some serious refactoring.
Refactoring the data layer improved the overall performance of the application.
Refactoring the data layer improved the overall performance of the application.
Is this a bug fix or just some general refactoring?
I will start refactoring the authentication module tomorrow morning.