Opportunity's and Spirit's original missions were planned to last 90 Martian days each. They ended up lasting over 8,000 combined. That is almost as impressive as getting the rovers to Mars in the first place.
JPL wrote a fascinating reflection on what engineering practices allowed this to happen. For any of you who have not experienced the NASA Knowledge Gateway, I would recommend. https://llis.nasa.gov/lesson/1743
Meanwhile software industry is... Ship to prod ASAP, hire junior devs to reach head count, outsource to overseas and contractors.
I realize the risks are different... But management gets pissed when software causes financial lost and wonder why.