At what point does cleaning up old code stop being worth it?

by•

Tidying up a messy file or simplifying a confusing flow feels great when it goes smoothly, until one small change reveals five more tangled pieces underneath. At some point it becomes a question of whether improving what exists is faster than rewriting that part cleanly.

How do you usually decide when to clean things up piece by piece versus starting fresh on a module?

1 view

Add a comment

Replies

Be the first to reply

Have a question or a thought to share? Add a comment above to start the conversation.