Why only single out government/public sector jobs as palces for all-age job stability?
Aerospace, defence, semiconductor, automotive, industrial, medical, healtchare, banking, insurance, manufacturing, naval, rail and freight, logistics and transportations, basically all legacy businesses, all are hiring SW engineers and are staffed by mostly older workers, but HN mostly snuffs at these fields because they're not in SV, are seen as un-cool, boring, old and crusty and don't pretend to change the world through innovation and paying millions in TC for 10h/week of pretending to work from home like Google does, but it's not like you will starve to death and be homeless if you work as a dev in those kinds of fields for a lot less than what Google pays, going from 1% top earners to 5% top earners.
This might sound harsh, but perhaps the last ~10+ years of hyper-growth in the VC funded SW sector has warped many devs perspective on their own value and what the rest of the real world is like.
Not where I live you can't build a house on a dev wage. Average dev wages is ~55k/year and average house price is 800k+.
Well I guess the idea is that all the "best" engineers would have already made millions by the time they hit 50 and so therefore those who are left are...
I must admit though that I've only seen one newly hired in their 60s, but probably the very few that find themselves involuntarily out of a job at that age can afford to and choose to retire a little bit earlier than planned.
The ones who are in it just for the money rarely become the best engineers.
To avoid being unemployable in your 50’s learn COBOL so you can work for a big stupid company or government.
Once out of the umbrella of the FAANGS, there are tons of jobs for SWE, just not at the eye watering salaries.
East Coast, tons of jobs at the 100K range.
https://www.cnbc.com/amp/2017/10/09/budget-breakdown-of-a-co...
And if you talk to the people who strongly identify with the MAGA movement, their main concerns are guns, illegal immigration, “persecution because of their Christian beliefs”, and for some strange reason - Disney.
People who know me and one of my friends calls us the “odd couple”. I’m a Black mostly agnostic bleeding heart libertarian capitalist pig who works in tech (including a stint in BigTech), my friend is a White former military high school dropout who is an evangelical Christian, gun loving and rural, who rails against those “illegals”.
But he attends a predominantly Black church and has been married to a deaf Vietnamese woman for two decades who he loves dearly.
I also use to live in a famous “sun down” town in Georgia made famous by Oprah. I’m often in conversations with modern “conservatives”. I don’t argue, I just listen.
To the contrary, this is the very finest distilled HN for you. I wouldn't expect less.
Must retire? No, of course not.
I worked through most of my 50's though and definitely saw "the writing on the wall". I don't want to scream "Ageism!" because I think people are often too quick to pigeon hole a thing that has much more complex roots.
For example, because of my white hair, beard, I'm probably not the guy you would go to and ask a Swift question to. And I don't blame anyone for having that ... instinct.
But it was a combination of things like that began to inform me that my better days in the industry were behind me.
Believe me, I tried to act as mentor when I knew I was probably within a year or two of heading out of the industry but I found the young'uns didn't want a mentor either. Oh well. I think I would have at their age but not everyone is the same.
Perhaps in some of the "trendy" "bro-culture" startups you'd have a more difficult time as an older developer but even in those places, the level of experience and skills older devs bring can be extremely valuable.
But say you were laid off in your 40's, now what? Well, there are so many bigger, less volatile companies out there with solid pay that are desperate for senior people with experience. There's also consulting for those who have spent a career building up a network of contacts. You can still leverage those old contacts for future opportunities as well.
Governmental work and such is also a place where age is not a concern. Here I agree you might not make as much money but employment is always available to developers who are skilled, experienced and flexible.