So far everything went well, but factors outside of my control start to turn things sour. It's not an issue pertaining to my individual role, just general developments in our particular part of the company.
I'm thinking about seeing what else is there. Before I go into disappointment, what is the market like when you are 45 or older?
If you've got 25 years specialised in some crackpot internal system that noone else cares about you may have a bad time. If you can obviously add value to whatever the company is currently worried about, it'll be fine.
There's some risk you'll be grilled on optimal hashtable design by a raw graduate who doesn't know the right answers. Some places expect you to write code using unfamiliar tooling while someone watches over your shoulder. There's a lot of nonsense in programming interviews. That's not very age dependent though, except in that you might remember a less absurd approach from last time around.
This is of paramount importance.
After 40, which unfortunately for me coincided with the credit crunch, my tech career withered and nearly died. I lived in London and was too old to find work in IT, and I had no more luck across Western Europe, where ageism is endemic and entrenched.
Luckily for me I came across a role in Central Europe, relocated there, and never looked back.
But it very much depends where in the world you are, and the English-speaking world is particularly bad for this in my experience.
In fact if your skills are applicable to the job market you are in much more demand than any 20 something year olds even if they have 5 years of experience with the same technologies
Let's say I'm 45 like you, but I cut my CV to include only the last 13 years (because I like to keep my CV one page only and because what I did 20 years ago is kinda irrelevant by now). On my CV I don't put pictures nor date or birth (this is common in many European countries). So, they interview me: in the video-call they cannot tell if I'm 45 or 35 (I have good genes), so they like me and proceed to send me the contract. They will only notice my age (if any) when they examine my national id or passport. But by then it would be too late for them (besides, they liked me, so I guess my age is irrelevant).
In reality, I'm 37 (but I look like if I'm 27), and I never ever have included my age or date of birth on my CV. I have cut some stuff from my CV that is not relevant to the roles I apply (e.g., graduation dates), and very old roles at the beginning of my career are not included on my CV anymore. So far nobody has ever asked my age.
Took my first fulltime job at 50 in 2020. I took a new job in August 2022 at 52.
I think it is a numbers game. A lot of appplications get denied w/o a single interview. Some I get denied after an interview. Ive bombed the shit out of every leetcode interview Ive taken which luckily isnt that many.
I'd estimate you'd do as good as someone 20 years younger than you provided you are willing and able to learn the newest hotness in your chosen sub-field.
This all being said I have personally seen 0 candidate over the age of 30 in the last 3-4 years of interviewing. Some of this might be how my job selects candidates, but given they selected me, and my boss is similarly aged, I would guess that there's a lot of aging out that happens naturally due to the factors I mentioned.