Software is getting worse, yes, although to be fair and mildly abrasive:
1) If you haven't actually lived through the arc you can't really spot this so you invite "okay boomer" sniping if you point it out.
2) Knowledge does not update the genome, therefore knowledge transmission is A Hard Problem, therefore because "developing software" is not a small and formal discipline the lessons learned by experience are not reliably/effectively/efficiently/at-all transmitted to the newer "generation" of "developers". This gives the appearance of "not learning from mistakes" or "things degrading" but the reality is simply that everyone is always reinventing things they don't understand as a result.
3) There are too many people engaging in the act of producing software who shouldn't actually be doing it. This is true of all fields where demand outstrips supply. LLMs are going to solve this problem in a most unfortunate manner.
4) The reality that cannot be discussed is that "stupid" is a much larger problem than anyone realizes, it extends well into areas that people normally think of as "requiring high intelligence", and it exacerbates all of the above.
5) We incentivize and, for reasons already given, actually justify behaviors that also tend to produce this. Ex: I assure you that somewhere out there is a product manager with a drug habit desperate to find a way to turn hammers into smart devices with a subscription service, NOT because this will help people who use hammers, but because this will increase profits for a company that produces hammers. This is an objectively bad and harmful practice that we encourage daily.
Soooooo, again, yep.