The other day, me and a colleague reviewed some source code I wrote a few years back. That source code was written before I joined Hashnode. At the time I was alone, without a mentor, and without a communication network. That source code is horrible.
I think, one habit which made me a better software engineer is joining Hashnode and actively discussing stuff and answering questions. Whenever I answer a question, I do not only try to help someone else, but I also try to get validation if my way of handling a problem is correct. In the beginning, it was mostly reading the answers of others and chipping in now and then, however I started discussing more and more. Now, I rather like writing about my way of doing things and I can see that clever people I meet agree with me. It's an awesome feeling, because this very community shaped me and helped me out a lot over the past one and a half years.
That's even more reason to give back to the community, which helps me again verify if I am still right about things. An upward spiral, if you want.
If you want to become better, make it a habit to write about your knowledge, about what you do, and accept other people's opinions and advice.