DEV Community

Discussion on: Guides to Refactoring

Collapse
 
anwar_nairi profile image
Anwar

Thanks for gathering those resources James 🤓

I do not refractor a lot, while I still maintain a PHP 5.6 hand made app. When I do refractor, I notice the time I will spend on is definitively related to the quality of the code I am maintaining. If the previous developer mind was clear, the code will be, and the refractor will make a lot of sense while not being hard to walk through the code. Just my feeling about it.

Collapse
 
varjmes profile image
james

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!