I wonder what's drives you to make so many Py modules? Do you see reusing modules for your own projects or do you have some other grand plan?
So any code I write I like to open source, because that's the best possible way I know of ensuring I won't have to waste time solving that same problem again.
The other thing that helps is that I think I've found a cure for project guilt.
I used to feel guilty about my projects - each one was Yet Another Thing that I should be spending more time on.
The fix I discovered was to make sure every single one of them has good test coverage and comprehensive documentation.
Effectively I treat each one as something which can stand on its own if I effectively abandon it - the thing works, and is documented, and other people can use it as-is without me feeling guilty that I'm not constantly actively working on improving it.
I wrote more about that here: https://simonwillison.net/2022/Nov/26/productivity/
“Look it’s 2023 this dude just learned about http error codes”. Silly example but you get the idea.
No-one knows everything. I respect anyone who is constantly learning new things, no matter how basic those things might be.
Here's the most basic one I published recently: https://til.simonwillison.net/html/scroll-to-text
https://overreacted.io/things-i-dont-know-as-of-2018/
It's written by Dan Abramov who has been instrumental in React's development
I was actually considering doing this on gemini, because I've got that fear too. An append-only log habit is definitely helping me lately, why not make it (semi-)public?
I think there's a single meachanism underneath both this and rubber ducking. There's something about getting your thoughts in order at a verbal (or textual) level that aids understanding.
I added "related TILs" to my site a while ago - here's a TIL about how I built that: https://til.simonwillison.net/sqlite/related-content - and as a result occasionally I'll post a new TIL and the related ones will remind me of an older one.
Occasionally I'll completely forget the subject of the TIL itself! I was delighted to randomly stumble on this one here https://til.simonwillison.net/html/datalist the other day (after clicking my "html" tag from another TIL) which reminded me of the HTML datalist element, which I had forgotten existed.
The great thing about TILs is that once you form a solid set of habits around them they can be extremely quick to put together: the majority of my TIL posts take between 15 minutes and half an hour to write.
I make extensive personal notes on everything I'm doing (in GitHub issues threads or VS Code scratch documents) - turning those into a TIL is mainly about pasting those notes into a Markdown file and tidying them up a bit.
https://til.simonwillison.net/ is my collection so far.
I get a huge amount of value out of these. I don't particularly care if other people read them, the value is in helping me better understand the material and enabling me to refer back to them in the future.
I refer to some of them multiple times every week! This one for example, about Python packaging with pyproject.toml: https://til.simonwillison.net/python/pyproject