There are two truths I try to keep in mind whenever I start feeling either extreme:
1. There are people who are so much better at programming than me, that I could work my entire life and never be as good as they are right now.
2. There are people who are so much worse at programming than me, that they could work their entire lives and never be as good as I am right now.
Its a continuum, a hill. Feel the gradient, walk uphill.