Yes, 100%. Almost no one has found either my public code or my writing useful, but the process of writing and documenting has been tremendously useful to help me clarify what I _actually believe_ at that point in time. This is the primary benefit.
That said, a few projects have taken off unexpectedly and clearly helped some folks, and I've received a few cold emails from folks who somehow ended up on my blog, and all have been pleasant conversations!
One thing I recommend is trying to lower the threshold of what is acceptable to publish. Publish scraps, publish "today I learned", publish "look at this stupid thing I discovered" stuff. Gradually your threshold will rise, but one mistake I see people making is the belief that they have to publish finished projects and novel-quality writing in order for it to be worth it. Nothing could be further from the truth.
It helps relieve the pressure from full-length blog posts. A place to let yourself drop below a certain level of quality/polish/length. Anything to move beyond a stagnant blog / writer's block!
Just the fact that my Github repos are 99% public forces me to be diligent in what I commit (no secrets, nothing private)
I have like one project with over 10 stars and a bunch of forks, but that's about it. I build stuff for me, not for others. If someone can look at my crap and get inspiration, it's cool but not essential to my happiness.
Some people on the other hand LOVE the "community" bit of it, every single brain fart of them has a fancy landing page, 15 posts about it on different subreddits and substacks and it's basically a yt-dlp wrapper or something. That's not for me.
And even if nobody else exists, you do [99] and can later look back at your sharing and glean insights, even if "wow look how little I knew and how far I've come".
So you can biforcate your sharing somewhat. 99% of your content of sharing will not be watched initially, but if you trim it and edit it intentionally well for an audience who care, people will come to see more of what you have.
Many "influencers" share a lot on twitch and then cut up the best part of their stream into a 2 minute video byte for youtube. As an example.