However, one thing that must be kept in mind when comparing to e.g. healthcare or aviation is that progress in those fields happens at a pace that's positively glacial as compared to software development. The development time for new airplane tech or healthcare tech can easily be a decade or more. At that pace, employers don't perceive "you're old and don't understand the new stuff anymore" to nearly the same degree.
Some of the stuff that happens regularly here in software land is like if suddenly accupuncture became the best cure for most diseases, or if pilots were given new planes with flight controls manipulated by moving your eyelids in a special way.