r/learnpython • • 4d ago

I keep starting small Python projects and abandoning them at like 70% — how do you actually finish one?

I've got this folder on my laptop that's basically a graveyard of half-finished Python stuff. There's a script that was supposed to sort my Shorts clips by game, a little tool for my Telegram bot that I got working and then just... stopped touching, and a data thing I started after watching one too many pandas tutorials.

They all get to the same point. The fun part's done, the thing mostly works, and then there's this last boring bit left — error handling, or making it not break on weird input, or just tidying it up enough that I'd actually use it. And that's where I lose interest and open a new file instead.

It's weird because I do finish things when someone else is waiting on them. College assignments get done, obviously. But the stuff that's just for me? It sits there at 70% forever.

So how do people actually push through that last stretch? Do you just force yourself to finish one small thing a week, or do you pick projects that are small enough that there is no boring last bit? Still figuring out whether my problem is discipline or just picking projects that are too big for the time I actually have.

1 Upvotes

18 comments sorted by

View all comments

1

u/MezzoScettico 4d ago

Just do it. And I'm pointing the finger at myself as I write that sentence. Last December, I got the closest I've ever done to getting all the stars from last year's Advent of Code. Just had one puzzle left to go, and it was half written. But I got bogged down trying to make the class work that I was creating for it. (There was an easy workaround good enough for the puzzle, but I wanted this class to work as a challenge to myself). And the new series starts in a couple of weeks.

I know that for me the trick is just to start. Once I have a certain amount of thought invested in a code project, I start to get slightly obsessive and keep poking away at it in spare moments. I just have to get over that threshold of getting re-interested again.

Had a similar issue with another puzzle code. My wife bought me a puzzle-a-day calendar last year and there was one in February that I found tedious to do by hand so I wrote a program to do a lot of the grunt work. It still left a lot of manual work to complete the solution. Never fully automated it.

Then the same puzzle came up about a week ago and I said to myself, "dammit, I'm going to see what it takes to make it fully automated." Only took a couple of hours once I got into it.

I think one key might be trying to make it do just a little bit more, one more small thing. Then you can see that thing and feel satisfaction. Run it a few times just to enjoy it doing what you wanted it to do. Then tackle another thing. A few of those and suddenly you're interested again.

1

u/acfot 4d ago

that one-more-small-thing idea really clicks for me, honestly. gonna try it on the clip sorter instead of staring at the whole messy finish line.