DEV Community

Discussion on: Guides to Refactoring

varjmes profile image
james Author

That makes sense! Refactoring can also come when the code is good, but you want to upgrade to more modern techniques. For example, converting from ES5 to ES6 JavaScript. Of course, you should't refactor if you don't have a good reason to!