2 ms·
If you don't have test coverage, you can't refactor (or at least it's a terrible idea). The first step in refactoring is writing a test (probably component lev
by disgruntledphd2 6y ago
If you don't have test coverage, you can't refactor (or at least it's a terrible idea).
The first step in refactoring is writing a test (probably component level at first) such that you can make sure you don't break anything.
Seriously, this is all covered in Fowler's book on refactoring (which is incredibly worth a read).