Designing nuclear power plants.
You must have a lot of free time on your hands then.

Regarding the "design flaw", had every other contemporary fighter been designed with an all flying tail (the best known solution to the compressibility problem at the time), then I would agree that Lockheed was negligent in not designing around the problem. But the problem was barely understood in 1941, and the P-38, because of it's clean airframe, got to "take point" out on the leading edge of the problem. Without benefit of a time machine to see into the future, they and the other manufacturers did the best they could.
I agree with you that some mishaps are entirely due to design flaws. Years ago I did a lot of the stress analysis for the RCC nosecap, chin panel, and leading edge panels on the shuttle. RCC with a silicon carbide coating to prevent oxidation is amazing stuff. It's able to shrug off aerodynamic loads @ 3000 degrees F with ease. But it ain't worth a damn when you smack it with foam insulation going 400 mph at room temperature. NASA was aware of the problem and decided to ignore it. Just like the famous O-ring leakage, THAT was a design flaw, albeit one driven by bureaucratic pressure to fly no matter what.