DEV Community

Discussion on: Effective Refactoring of Heavy Database Interface

Collapse
 
mattschwartz profile image
Matthew Schwartz

I've done a lot of refactoring of huge projects. Your tip of having tests ready before you start is spot on. Best advice to anyone about to go through the process. Unit tests are the best way to validate what you're changing produces the same results. For me the time it takes to write the tests more than make up for the time saved refactoring simply because I can have confidence in my work as I go through the process.