DEV Community

Discussion on: Refactoring is not so scary

Collapse
 
dev3l profile image
Justin L Beall • Edited

MOST important, write unit tests. More specifically, pin down tests.

Pinning Tests
Legacy Code Challenge

Depending upon how much time I have while in a file, I take refactoring in steps.

  • If no tests write unit tests, little refactoring
  • Else time box and play to heart's content

Always follow the boy scout rule!

Collapse
 
spalonytoster profile image
Maciej Posłuszny

Hey Justin, thanks for the good read and nice tips!