News for hackers. Stuff that matters.
Re:Ask HN: How did NASA make reliable software if they didn'... by teej on Tuesday July 19, 2016 @12:38PM (#12122760)
Could to into more detail about what techniques NASA specifically used to achieve quality software? I'm honestly very interested. I feel like you didn't answer the spirit of the question "How did NASA build highly reliable software" while pigeon holeing on "without unit tests".
Re:Ask HN: How did NASA make reliable software if they didn'... by Cacti on Tuesday July 19, 2016 @12:46PM (#12122825)
Their hardware was essentially fixed, well defined, and limited in scope.

They reviewed every single piece of code many, many times.

They were draconian about memory handling, loops, preprocessor directives, and recursion.

All functions had to check all return types from other functions.

No more than one level of pointer dereferencing.

All code bodies had to fit on a piece of paper.

/edit should add, they used their tools thoroughly: compilers were run on max warning levels and absolutely no warnings were accepted, ever. They also used several static analysis tools on the code (under-appreciated these days!).

Re:Ask HN: How did NASA make reliable software if they didn'... by yardie on Tuesday July 19, 2016 @01:03PM (#12122979)
I'd also add they had excellent, mature coders.

None of this crunch time bullshit, though I'm sure it happened.

I've been on one of those binges. If another coder hadn't seen my errors, due to diminishing sleep, I'd probably keep banging my head against the wall. Just compounding the situation.

Re:Ask HN: How did NASA make reliable software if they didn'... by Jtsummers on Tuesday July 19, 2016 @01:40PM (#12123314)
Anecdotal generalization: I've seen better code from the 40-hour-a-week guys than the ones that do 80 hours of overtime each week.

That doesn't mean the former finish first, they usually don't. But their code tends to be more thoughtfully constructed. They have a vested interest in not spending their time in the office, and that means minimizing debugging time along with coding time.

When you're in a hot field with lots of competition, maybe those sprints make sense. But in the field of NASA-type systems, there may be a deadline, but it's rarely urgent. This gives the developers much more time to step back, breathe, and think.

Re:Ask HN: How did NASA make reliable software if they didn'... by danudey on Tuesday July 19, 2016 @02:41PM (#12123806)
I can't count how many times I stayed late at the office working on a problem for 6 hours straight, and then after a good night's sleep found and fixed the issue after 20 minutes at work the next day. Sleep is king.
Re:Ask HN: How did NASA make reliable software if they didn'... by yardie on Tuesday July 19, 2016 @03:55PM (#12124361)
I have latent dyslexia which seems to emerge after too many hours at a computer screen. I've come back from a good nights rest to find variable names that are just slightly misspelled, recursive loops that are unreachable, and functions that are incomplete because I was distracted by a bug hunt.
Re:Ask HN: How did NASA make reliable software if they didn'... by mywittyname on Tuesday July 19, 2016 @05:55PM (#12125235)
I think we all do this to some degree. When I'm working on a difficult problem, it feels like Christmas Eve, because I know I'll wake up and have the solution coded up before my coffee is gone.
Re:Ask HN: How did NASA make reliable software if they didn'... by finishingmove on Tuesday July 19, 2016 @01:39PM (#12123302)
An article was recently featured here, that said functions were limited to 60 lines. That seems like way too loose of a restriction considering the possible consequences.
Re:Ask HN: How did NASA make reliable software if they didn'... by Cacti on Tuesday July 19, 2016 @01:49PM (#12123407)
One page of text at standard size, with standard style (one statement or declaration per line). Which is roughly 60 lines.

If you follow their other guidelines (no recursion, fixed sized loops, etc.), then it can take you several lines to do much of anything, so 60 isn't very long. Those things combined means you're basically saying that each function should only be attempting to do 2-3 significant things, which seems about right to me, as most people can't fully understand more than 3 things simultaneously at one go.

Re:Ask HN: How did NASA make reliable software if they didn'... by jotux on Tuesday July 19, 2016 @01:08PM (#12123022)
Re:Ask HN: How did NASA make reliable software if they didn'... by nradov on Tuesday July 19, 2016 @03:26PM (#12124164)
Much of that is covered in "The Capability Maturity Model: Guidelines for Improving the Software Process". The book is out of print now but available fairly cheap and it's well worth reading.

https://www.amazon.com/gp/product/0201546647?ref%5F=sr%5F1%5...

And here's some further summary information and reading recommendations from Steve McConnell.

http://www.stevemcconnell.com/sgcrib.htm

Re:Ask HN: How did NASA make reliable software if they didn'... by zem on Tuesday July 19, 2016 @02:47PM (#12123838)
this article is a very good read on the topic: http://www.fastcompany.com/28121/they-write-right-stuff
Re:Ask HN: How did NASA make reliable software if they didn'... by sebastianconcpt on Tuesday July 19, 2016 @01:50PM (#12123415)
Indeed, you did catch the spirit of the question right :) Thanks