Those are not the same things at all. My experience with "older" engineers puts them into 2 camps:
* Those that have grown into leads, have become masters of their craft, have major accomplishments, and are still willing to admit there's always more to learn: No problem getting a job, very highly paid and sought after.
* Those that have a 20 year resume of 1 to 2 year jobs. No title progression, bad and arrogant attitudes, have completely let themselves go physically. Always talk down to other engineers, claiming how they did it 20 years ago was so much better ("why don't we use vanilla JS instead of this fancy React mumbo jumbo"). Almost always QA "engineers" / SDETs. Cannot find a job because they're not valuable, but claim ageism.
If you had a doctor that claimed that we did medicine better 30 years ago, and hopped around to new hospitals every 6 months to 2 years, you bet your ass they'd be hard-pressed finding a new job as well.
* Those that have grown into leads, have become masters of their craft, have major accomplishments, and are still willing to admit there's always more to learn: No problem getting a job, very highly paid and sought after.
* Those that have a 20 year resume of 1 to 2 year jobs. No title progression, bad and arrogant attitudes, have completely let themselves go physically. Always talk down to other engineers, claiming how they did it 20 years ago was so much better ("why don't we use vanilla JS instead of this fancy React mumbo jumbo"). Almost always QA "engineers" / SDETs. Cannot find a job because they're not valuable, but claim ageism.
If you had a doctor that claimed that we did medicine better 30 years ago, and hopped around to new hospitals every 6 months to 2 years, you bet your ass they'd be hard-pressed finding a new job as well.