I'm forty this year and still coding. I dabbled in mgmt in my early thirties and didn't enjoy it, so stuck at coding.
I am extremely up-to-date and well-versed in everything modern - like most of us here, its my consuming passion too - but I'm completely underwhelmed by the JS frameworks so I can seem a bit "not with it" perhaps?
I do a lot of architecture - I've been a chief architect for big subsystems on a small OS, even. Not that I seem to have any impact or sway on mgmt, who keep repeating the technical mistakes I keep pointing out anyway..
So here's the nub: if I moved on, I doubt I'd be replaced. Companies don't feel they need people like me. And they can have someone young, cheap, without family and without work-life-balance and without strong opinions to point out technical flaws in plans etc. They'd all probably be relieved!
Leaving us "old geeks" unemployable in anywhere near the quantities soon available...