That is the argument AGAINST being a software engineer. If you specialize in the wrong technology that goes out of favor, the market value of your experience goes to $0. It's very hard to guess what will be popular 5-10 years from now. If you pick wrong, you'll be stuck.