Haha yes, it's difficult, but I think we should never be ashamed of the learning process.
A year ago I would have described myself as a senior backend dev, but the code I wrote back then seems not that great now. Chances are that year-into-the-future me will think the same about current-me.
It's true that there are some harsh or even toxic critics on the internet, but there are also plenty of devs who are either helped by, or willing to help with code of any level.
I'm trying to be confident enough to share more code with the world, it's not easy, but when I do it I'm always surprised that there are plenty of constructive positive responses.
You have a great big supportive community right here. I was really surprised what kind feedback I got posting in this forum.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.