4 ms·
Refactoring is not reformatting, nor are text replacement systems comparable. Refactoring allows you to keep program behavior the same while safely making stru
by kvb 13y ago
Refactoring is not reformatting, nor are text replacement systems comparable. Refactoring allows you to keep program behavior the same while safely making structural changes to your code. Renaming is one simple example of this (where true refactoring tools are superior to textual find-and-replace because they understand which occurrences of an identifier are semantically identical). But there are many other useful refactoring operations, such as extracting a bit of logic into its own method, etc.