Look, I actually do agree that Gwynne Shotwell has been a key component in making SpaceX successful / curbing Musk's worst impulses / etc.
But don't you think it's strange that (assuming so much of SpaceX's success is owed to Shotwell) nothing like what SpaceX has achieved was achieved at her previous gigs? But then she goes to work for Elon Musk and suddenly...
Regardless, the point I'm making is not "Elon Musk wrote all the software at his various companies himself" but rather "Elon Musk founding / running / exiting a variety of companies in very diverse fields but all of which are good at software is a very strong indicator that he understands software and how it is built".
Meanwhile, the "he doesn't understand software" corpus of evidence basically amounts to "I think he's doing a bad job of running Twitter in the handful of weeks he has been there. I think this even though I have very limited insight into what is actually happening at Twitter, besides what is being fed to the media by disgruntled employees who probably hated Elon Musk before the acquisition and their subsequent firing".