Coding was hard enough that even most bad students understood they knew very little because they'd falter, students with decent knowledge were very seldomly total assholes.
I think the big change in the equation is that chatbots churning out good enough shit without tripping up on basics or tedious tasks makes the insufferably stupid people (those worst affected by Dunning-Kruger) think that they actually know something.