Inevitably, technology changes, and at some point you have to learn a new language, programming paradigm, database, or what-have-you. One feels again that one does not know what to do, at first. It's rather like feeling stupid. I have become able simply to say to myself, 'ah, yes, that feeling again, it shall pass in time', and just keep working at it (whatever 'it' is that year).
If you haven't felt like you don't know what you're doing in many years, your programming career has stalled, and I believe you should seek out a new skill to learn that makes you feel stupid while learning it, pronto. It takes practice to remain calm while having that feeling, and if you haven't had it in years you might let it panic you into thinking you can no longer program.