An old piece of folk wisdom in IT is that software development is a dead-end job past the age of 40. In truth, like any STEM field, software development requires constant adaptation and lifelong learning. If you commit to these things, it can be satisfying work at any age.