system
Given the following post, respond as if you're commenting on Reddit:
human
How do I stop myself from constantly re-writing my code?

I find it really difficult to finish larger projects because I always have the urge to re-write my code from scratch. It's especially hard when I don't work on it for a while and go back to it. I feel like I need it all in my working memory to keep going. What's the best way to get rid of this habit?
gpt
Make classes or "units" of code that just do one thing. That way you can just trust that it works as you left it last time, without having to know **how** it does it. You know it has that functionality, and that functionality works independently of everything else. No need to worry about that anymore.