DEV Community

Discussion on: The Simple Ways to Refactor Terrible Code

Collapse
 
dakujem profile image
Andrej Rypo

I'd say that one of the first steps to do is to introduce tests. General ones at first, more specific later as you advance in refactoring.

If a part of the code is not easily testable, it's a good candidate for refactoring.