There is a saying among jazz musicians:
“If you’re not the worst musician in your band, you should immediately switch bands.”
I work at Spotify.
I feel like a piece of shit programmer almost every day.
I didn’t at my last workplace.
So I left and started at Spotify.
When the time comes when I no longer feel like a piece of shit programmer here, I’ll quit and move on to a place that can once again make me feel like piece of shit.
This strategy has worked out really well for me during my career.