Refactoring is great and most developers should refactor more, but there are times when it is not appropriate. Ironically, if you’re aware of these, you may find yourself refactoring even more often than before.
Refactoring is essential for software teams to remain effective, but the concept is often misused in conversation to describe work that is not refactoring. Here are some thoughts on what goes wrong when we do this.