system
Given the following post, respond as if you're commenting on Reddit:
human
How to stop rebuilding everything from scratch?

Every time I'm working on a sizeable project, I feel the urge to stop half way and rebuild everything from scratch as if I'm going to write it better, or understand it deeper.

It's really counterproductive and somewhat demotivating. How do I stop this habit?
gpt
You will always want to, probably a consequence of the whole "code is easier to write than to read". Can you refactor rather than re-write? You should be able to identify and argue *how* you would improve on the current implementation, as if you needed your team's buy-in. If you can't identify what would be improved, you may just need to understand what you wrote better and study exactly what is happening at each step.

Break it down into smaller parts. Identify the confusing part(s). Write documentation if there is none.