DEV Community

Discussion on: When is your code 'good enough'?

Collapse
 
gauravchaddha1996 profile image
Gaurav Chaddha

If the code solves the problem at hand without being too smelly or difficult to understand, the code is good. IMO one should refactor until one can change one factor of code without worrying about another (Like change UI without worrying about breaking functionality). Although remember to not over-refactor your code. Stop when it will make the code more complex to understand. Refactor only until code is understandable and isn't that hard to understand.