4 ms·
unit test first so you know if you've broken it. Then lots of test input variations best taken from production sources. Refactor thereafter and test after each
by quintes 11y ago
unit test first so you know if you've broken it. Then lots of test input variations best taken from production sources.
Refactor thereafter and test after each iteration of changes. It's not a rewrite, so don't lose the plot just Refactor into smaller methods :)