TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

When to stop refactoring?

1 pointsby carlosabout 17 years ago
We all love continuous refactoring (... ok, not all). But what happens when that becomes an obsession? I assume no code will never be 100% perfect. When should you stop refactoring? and ... continue ahead with more coding?

2 comments

sansworkabout 17 years ago
Refactor AS you continue ahead when you notice specifically bad code/design issues. Also if you find performance issues when profiling. Don't let refactoring be your primary task, keep it on a secondary track but running along side your primary task.
noodleabout 17 years ago
refactoring usually has diminishing returns, providing you're doing it well. it comes down to what will benefit you more? refactoring again for the 3rd time, which will take you even longer and/or result in less benefit than the previous 2 times, or something else like testing or development?