if the worst thing is someone else's code then someone else's hardware
Because they did that.
Also relevant: 19 engineers from Apple worked on the USB-C connector and cable specification[1].
«None of the chargers fit snuggly into socket. The connectors are flimsy and get damaged easily. Just rolling up the charger and putting it in my pocket can cause the tip to break off»[0]
«While on the whole, I am satisfied with the switch to USB Micro, my only major gripe is the less obvious keying. Inserting the plug with good lighting is no problem (if you can see), but trying to plug in your cell phone after you've crawled into bed with the lights off can be a trial. As somebody who works with people with disabilities and medical conditions, I have heard from clients with compromised motor control, those with low vision, and those with distal neuropathies that they do experience a harder time plugging in their devices nowadays»[0]
[0] https://electronics.stackexchange.com/questions/18552/why-wa...
Apple was also part of the working group that developed USB-C.
So many people complaining about a really robust connector that solved real problems and has proven to be pretty reliable for 13 years. I'm no huge Apple fanboi, and I'm happy to have all their stuff use USB-C now, but the hate for Lightning is way inflated IMO.