DEV Community

Discussion on: Refactoring Basics

Collapse
 
aleksikauppila profile image
Aleksi Kauppila

Thanks for posting Arne. I think this writing acknowledges all the things how to efficiently refactor code. Good job! 👍

Running a three-minutes test suite after every twenty-seconds change will slow you down terribly.

I can totally relate to this. That's why i prefer to have those very microscopical commits in the VCS. Small changes are easy to name: "remove unused argument from Class.method()", "rename method Class.method() to Class.newName()". It also creates a mental note that this change is safe, but this other was not that safe. Once the tests expose that i broke the code i can quickly review the commits and revert the one i think broke the tests.