Coding was supposed to be a pathway to a high-paying job, but AI is pulling the rug out from young programmers.