DEV Community

Discussion on: When to refactor

Collapse
 
steelwolf180 profile image
Max Ong Zong Bao

1) When you have the time that is dedicated to working on refactoring it. Ideally, you should have test cases to test the piece of code and follows the clean code philosophy that anyone can take it up from there.
2) This is why there's a need for group consensus that you should focus on a style guide and to follow it. Building test cases to test out and reduce the amount of time needed to refactor code.