>> But my code is embarrassing! This has always been the first reason I haven't open-sourced some of my code. The second being that it's also totally useless, and lots of people could write it better.
I genuinely do not understand this mindset. How will you get better at writing code if you never get feedback about how your code would be better?
When I find myself in the hot seat answering to questions about why code was structured this way or that, I usually already want to move on from the project, and it feels like a hostile situation. I know I can always learn and improve from feedback, but oftentimes my intention in putting something out is not to generate feedback but just to make it available. Unfortunately, I've found that most of the time this decays into situations where I have to defend my choices. Which I'll be the first to admit are often made on the spur, because if I were planning on other people picking apart my coding decisions I wouldn't be able to code my side projects nearly as quickly.
[Frequently I think this is because people need to prove they can do something better than I did, and have to grind that axe against my work; which takes whatever utility I might have made and turns it into a pissing contest].
But I just don't want to subject myself to that shit anymore, and the world can get on fine without my code.
tl/dr, the hostility and negativity that usually comes along w/ people giving their opinions makes me not want to share my work with them.