DEV Community

Discussion on: When Should You Refactor Your Code?

Collapse
 
jamesdengel profile image
James dengel

I prefer to refactor if I have copied and pasted code, then slightly altered it to fix a unit test. Then I know it’s time to observe DRY And refactor.