I really enjoyed this keynote from PyCon 2015 by Jacob Kaplan-Moss and I think you will too. He makes a really great point in particular about how statistically, the vast majority of us are average programmers. That’s why they call it average! As much as we’d all like to be amazing programmers, I find something really comforting in knowing that realistically, I’m a perfectly normal programmer and so are you, particularly when I’m having a bad day and nothing works and I feel like a complete fuckup.
When you have a day like that, give that talk a listen and remember that statistically you’re probably just fine :)