As an individual? I'd suggest researching the hardest problems for computer AI to solve, then picking a career in one of those areas. Generally any area to do with creativity and the human condition should remain viable for a long time.
Luckily, programming and design should remain relevant for quite a while.