Refactoring software may not always improve code quality, study finds.
Refactoring code to improve software quality doesn't always work as expected. A study of 25 projects found that most refactoring changes did not reduce or introduce code smells. Only a small percentage of refactoring changes actually removed code smells, while some introduced new ones. Surprisingly, code smells induced by refactoring tended to stick around for a long time before being addressed. This suggests that refactoring may not always lead to the expected improvements in software quality.