Is the computer science major past its prime?

I slightly disagree. Most software companies have very little economic incentive to write secure software. macOS and Windows could be full of security holes and still have a near duopoly.