Dunning-Kruger effect comes to mind. If you are confident enough you dismiss the possibility of being wrong and more importantly, the value of seeking alternative solutions to problems you may solve commonly.
So always be open to the fact that however you solve a problem, it can always be done better, and try to make time to improve on your approach. Sometimes you will find a better way, sometimes you won't.
> What else can one do to improve their skills in programming?
Explore different programming languages and programming paradigms. Don't ever hesitate to step outside your comfort zone. Adopt the view that programming languages are a toolbox, some performing one task better than the other, rather than each being general purpose / one size fits all.