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

19

u/lykwydchykyn Apr 07 '16

It's a shame that the article seems to focus on the software developers in that sense, since the actual content is an indictment less against developers and more against managers and stakeholders. If someone is asking me the question, "Why are there bugs in the software? Why isn't it perfect?", I can point to this article and say "Here's what it takes to get perfect code. Are you willing to do this?"

Because the problem isn't my T-shirts or pizza or whatever non-white-collar accoutrements you want to name, the problem is that the stake holder changed scope 6 times on a whim, can't describe the requirements beyond the vaguest terms, and wants it delivered by next week for the original price.

3

u/Rainfly_X Apr 08 '16

I work in a domain where the stakeholders don't usually know exactly what they want, and it's our job to figure out the details. This makes the most sense because:

  • We're working with old software. The limitations are often unintuitive. We can accomplish almost literally anything, but it may take a long time or end up buggy if it's contrary to the underlying reality.

  • When stakeholders get too specific or inflexible, we end up boxed into a bad spec, for the above reason.

  • Often even we don't know the ideal path, and it's worth one or two exploratory efforts before one of them feels both doable and maintainable.

For our application, there are very few scenarios where a detailed spec doesn't tie us to a burning building, no matter who writes it! The best thing to give us is a description what you want, as high level and unvarnished as you can, and we can work out the rest collaboratively.

Unfortunately, the current org structure has an intermediate step that is overspecifying projects badly. These aren't bad people, but the process is wrong, and it's expensive (in time and effort) to synchronize with this external division that otherwise drops projects in our lap with contradictory or needlessly painful requirements.

2

u/lykwydchykyn Apr 08 '16

I guess I hadn't considered that side of detailed specs. Especially nowadays when we depend on so much software written by other people, it is kind of good to have some wiggle room.

Good point.

Those last-minute scope changes, though...

1

u/Rainfly_X Apr 08 '16

Oh, last minute changes are a bitch in any environment where you allow them. We recently had a project where something the spec team thought would be "simple" was a multi-week death march, under a cloud of "we promised the users this feature would be here soon." Engineering didn't promise shit, but who picks up the slack, eh?

But the part that really broke me is the change. The original spec had us implementing a new feature that united and abstracted over two existing features. That abstraction was a primary point of effort to develop and QA, as it had to normalize data from both existing features. And then, directive from above: for now, let's just release the easy half.

So now we have a mountain of normalization logic that's unused, the bigger half of functionality commented out, and it didn't need to be implemented for the first release anyways, had we gotten this decision early enough. I was genuinely furious, and still get intensely angry when I think about it.