There is a kind of project that sits at ninety percent for three weeks. The code almost runs, the feature list keeps growing, and the only thing standing between you and a working tool is a decision about what counts as done. Finishing is a skill separate from programming, and it is learned by practicing the ending.
Write the finish line before the features
Before the next line of code, write one sentence describing what the finished program does for you. Not what it could do. Something like: turns a folder of dated photos into names sorted by capture date, and refuses to overwrite anything. That sentence is the boundary of the project, and anything outside it belongs to a version two that may never exist.
Put the sentence at the top of the notes file and read it whenever you are tempted to add a menu, a settings screen, or a plugin system. Most unfinished projects are not short of code; they are short of a boundary.
Cut until it runs end to end
A program that handles one file completely is worth more than one that handles five cases halfway. Get the thinnest possible path working: read the input, transform it, write the output, print one line confirming what happened. Then run it on real data, however ugly the code looks.
After it runs, improve in order of what actually bothered you during that run. Error messages before features. A missing input check before a progress bar. Anything that was not painful in real use can wait, and much of it will turn out not to matter.
The last ten percent that feels like ninety
The end of a project is mostly unglamorous work, and it is the part beginners skip because it feels less like programming:
- Handle the missing file, the empty folder, and the argument that is not a number.
- Print what the program is about to do before it does something destructive, and require a confirmation.
- Write the three-line README with the exact launch command and one example.
- Delete the dead functions, commented experiments, and unused variables you accumulated.
- Run it once from a fresh terminal, in a different folder, to catch assumptions about paths.
None of these is interesting. All of them are what makes the difference between a script you trust and a script you are afraid to run.
Put it somewhere you can point at
A finished project needs a location. Move the folder out of the downloads pile, name it something stable, keep the notes beside the code, and set a date on which you will run it again. If it is a tool, install it where you would normally look for tools so you reach for it by habit.
Then stop. Start the next project instead of polishing this one indefinitely. The habit worth building is not perfection at the end but the sequence: a sentence, a thin path, the unglamorous ten percent, a home, and an ending you decided on in advance.