DEV Community

Discussion on: When is it the best time to refactor?

Collapse
 
frankfont profile image
Frank Font

I once asked a code quality seminar leader how it was that people got their code to look compact and clean the first time through. It always seemed to me I needed to iterate. He said everyone iterates!

You are so right about not making refactoring a time waster; because it really is not when it is part of the value add.

There is a threshold for triggering a refactor; and it always depends on many factors. Refactoring just because we can is like climbing every mountain just because it is there. Better to choose the climbs because we cannot climb them all and do all the other things that are worth doing too.

Thanks for sharing the cool post.