100% the same boat when I started! I actually deleted a paragraph that said when I was young I wanted to learn how to do things the right way. You eventually learn there is no right way us devs will agree upon. You won't have opinions on the better way until you've done it an objectively bad way.
Reading code helps with this. I'm always looking at my library's and framework's implementations. Half my dependencies I swear I patch to make them "better" (subjectively).