In the case of CS, I think there will be a pretty solid need for code in the foreseeable future. Even at companies that are traditionally of the “hardware” variety, more often than not their “engineers” are of the software variety. Software companies are even more strongly software-oriented, obviously.
Whether or not we will need CS majors to do most coding jobs remains to be seen. Most of what needs to be coded could be done by someone with a year’s worth of coding experience. Might lead to CS becoming ubiquitous like English or History.