I do not know how you can be a better programmer aside from simply doing a lot of programming, thinking about programming, solving problems, and following your interests down the rabbit hole of gaining knowledge.
I can, however, offer you some take-aways I've come up with trying to answer that question for myself. Though I caution you that adopting my solutions to the problem are as likely to help you as wearing my glasses is to correct your vision. (they might be the same prescription but probably aren't)
Firstly, commit yourself to stop comparing your life to the best parts of other people's lives. You get to read about the successes of others, it's far less common to read about their failures. (Unless the failure is presented as a contrast or starting point to show off a later success). This skews your thinking into believing that everyone else is producing all this wonderful stuff while you're just grinding out crap.
Compare yourself against your past self, not other people. Bonus points to commit to that comparison across every aspect of your life and not just your programming ability.
Secondly, decide what you mean by being a "better" developer. What does that mean exactly? The ability to work in multiple languages? Having a deep knowledge of one language? Having a large portfolio of completed projects? Something else?
Do you even really want to be "better" or do you really want recognition or more money or something else?
Thirdly, take the long view and take small steps consistent with achieving your big goal. Example: if you want the ability to work in multiple languages, take the small step of choosing ONE new one and spending 6 months or a year digging into it. Think of a fun little project and see if you can implement it using that language. Repeat that step for a different language for another 6~12 months. How many repeats/years of that will result in you become proficient in multiple languages? If you want, you can combo that with writing up your experience in a blog presenting it to a tech group... it seems to me that combo cold easily result in gaining reputation, expanding your portfolio, opening you up to job offers (more money), etc.
What do you care if it takes you 5 years to accomplish all that? What else were you going to do with that time? (and if using that time for something else would have a higher value for you then forget about being a "better" programmer and instead spend the time on whatever else fulfills you and makes you happy)