That's OK I didn't write that code . I did a lot of the algorithm design and signal processing work. I just happen to do a lot of programming as part my job and even sometimes as a hobby or for various research purposes. I happen to believe that the problem is more than just crappy programmers. (Though with the declining standards in education that's a problem too.) Rather I think there is a fundamental flaw in the way people develop software, either in the process that's involved or perhaps the tools themselves.
The complexity of a large project eventual overwhelms an ordinary human, and bugs, sometimes catastrophic can not seem to be avoided. Maybe some of the work done in proving program correctness or automatic test generation can mitigate this, but I'm not so sure. AI was held out as next big thing that was going to revolutionize our lives. However it turned out to be largely a huge disappointment. We still need to hire humans to write software.