Worst problem with the programming community
Too many idiots and failures are involved. Imagine if bridges were designed by ``architects'' whose only real knowledge about the topic comes from Structural Analysis for Dummies and blog posts. Imagine furthermore that the only reason they became architects is that they failed at everything else and architecture was already so overrun with vermin of their ilk that for once they weren't thrown out of a field. This is the state of programming today. The entire field is populated by mental midget teenagers, teenaged or otherwise, with unwarranted self-importance who first horribly break everything and then attempt to sell you their ``replacement'', which does approximately what the old thing did, except not really and kinda worse, while being three times as big.
This is, to me, the biggest problem of all. There are certainly other problems, such as a complete disregard for elegance and simplicity or the increasing subversion of open source projects by faggots who want to abuse them for political and financial gains, but there is no hope of solving these without addressing the bigger problem which provides fertile soil for them.
You're describing webdev, which is only one of many programming disciplines.
I don't think it's fair to put that on the people jumping into "programming" (very general field btw). Corporations are fine outsourcing and paying for bad code as long as it cheap. The government is pushing for everyone to learn to "code" and people call it the future.
All this shitty hype and overzealous investment has caused people to forget it's just applied math.