r/programming • • Apr 07 '16

The process employed to program the software that launched space shuttles into orbit is "perfect as human beings have achieved."

http://www.fastcompany.com/28121/they-write-right-stuff
1.4k Upvotes

423 comments sorted by

View all comments

Show parent comments

10

u/scarytall Apr 07 '16

Correct. And that's the point: there are situations where you need it, and some where you don't. To stay with my analogy, just because I don't need an F-250 Super Duty doesn't mean nobody does, and vice versa. It's similar to premature optimization.

7

u/xolox Apr 07 '16

In fact I would say this is a form of premature optimization, sometimes even a "dangerous" one! At least this is how I look at things. Every now and then I fall into the trap of wanting my software to be 100% robust, hindering further progress on the project in question until I switch back from my idealistic self to my pragmatic self :-).

One thing I've learned about dealing with this is that anticipating and pro-actively dealing with all possible failure modes is not always realistic - "production experience" will always point out unanticipated failure modes, because programmers are humans and humans are not perfect. Also, leaky abstractions will bite you every time :-).

What does help (in my field of expertise, automating system maintenance and integration on large clusters of UNIX systems) is the fail-fast approach with strict timeouts and supervision to restart on failure.