A computer-science degree is no longer a golden ticket.

Stanford and MIT graduates are doing just fine, but a stampede of students into this major over the last two decades produced more coders than companies need. Artificial intelligence makes the oversupply even worse.