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

0

u/[deleted] Apr 07 '16

[deleted]

23

u/relativityboy Apr 07 '16

Only exception to this is where user data is concerned. That always needs 5nines love.

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.

81

u/neonKow Apr 07 '16

To add onto this, one of the great things about the web when it first appeared was how accessible it was to everyone. Here was a publishing platform that wasn't limited to publishers with millions a month to throw at publishing books or articles.

Everyone who thinks web languages are flawed because you can't launch spaceships writing that way are forgetting the forgiving nature of browser interpreted languages is what allowed so much individuality and creativity to bloom and create the internet we know and love today.

8

u/epicwisdom Apr 07 '16

That's not why people think web languages are flawed. Robustness is one criticism, sure, but I don't think anybody's main issue with JS is the fact that it's not robust enough for NASA...

→ More replies (18)

0

u/[deleted] Apr 07 '16

[deleted]

91

u/greenwizard88 Apr 07 '16

I don't think that anyone shits on javascript or html because it's not a good programming/markup language. I think people (or at least, I personally) shit on javascript because it's a scripting language that's been re-purposed for LOB apps, Photoshop-in-the-browser, servers, and god only knows what else.

Up until recently, "use strict" wasn't a thing. I'd argue that the benefit of not having any boilerplate language to write actually hurts the language, because now you have "programmers" making sites like forbes.com which downloads 35+mb of data just to load the home page.

As a programmer, if I prefer a strongly typed language, I'm also shit out of luck because my only choice is to use an esoteric language that compiles into javascript (I just called TypeScript esoteric, sue me).

I'm still running into API implementations that don't match, so even if you could dare call javascript accessible, it's not really unless you have a lot of domain knowledge, at which point it becomes a kludge. Which javascript polyfills are you including today?

To top it all off, the debugging tools are still crap. Today, I had a problem where a breakpoint would behave differently if the page was in an iFrame or not - but only the breakpoint, the application would still run correctly either way.

So, sorry to go off on you like that. I'm just really annoyed with javascript, and it seems to get worse every year, not better. I can't wait to see what web assembly brings. /s

18

u/Fs0i Apr 07 '16

Up until recently, "use strict" wasn't a thing. I'd argue that the benefit of not having any boilerplate language to write actually hurts the language, because now you have "programmers" making sites like forbes.com which downloads 35+mb of data just to load the home page.

Hey! It's only 15mb for me!

25

u/sc14s Apr 08 '16

Just about a MB for me.. Thank you Ublock Origin

15

u/Labradoodles Apr 07 '16

Clearly A/B testing at it's finest.

3

u/mus1Kk Apr 08 '16

1300 requests wtf?!

3

u/Fs0i Apr 08 '16

Awww come on. I only needed 15 seconds to load it with a 50 mbit-connection.

And the webserver likes the 1300 requests, it gets bored otherwise.

(But seriously, 1300 requests? Way to kill the server - and some clients)

→ More replies (2)

15

u/morgan_lowtech Apr 07 '16 edited Apr 07 '16

now you have "programmers" making sites like forbes.com which downloads 35+mb of data just to load the home page.

By and large this is not the fault of bad developers and neither is it the fault of HR or poor hiring practices as /u/leptons states in a sibling comment. Forbes.com loads megabytes worth of stuff because it is working as intended. Have a look at http://builtwith.com/forbes.com, specifically look at the Advertising, Analytics and Tracking sections. There are more 3rd party libraries and services listed there than anything else powering site. These are requirements that come from above (usually the Marketing team and frequently anointed as top priority by executives.) I'm sure many of the developers would love to focus on performance, efficiency, stability, etc. but the fact of the matter is that those things don't impact revenue nearly as much as advertising and analytics do. It's not 1996 anymore, the web is now the main source of income (either directly via advertising or online sales, or indirectly via customer acquisition and brand recognition) for many companies that don't have anything to do with technology . The war for the web ended before we even knew it started and Wall Street won.

EDIT: In the interest of full disclosure, I work in CX in a strictly technical capacity. I deal directly with these developers, marketing folks and executives. It is big business right now.

0

u/[deleted] Apr 07 '16

[deleted]

→ More replies (2)
→ More replies (1)
→ More replies (17)
→ More replies (3)
→ More replies (3)

0

u/[deleted] Apr 07 '16

[deleted]

3

u/JeffMo Apr 07 '16

I'm curious why no one wanted to use it. You only mentioned good things, and I guess I'm not inferring what was bad about it.

28

u/Elec0 Apr 07 '16

It's easily possible they solved a problem that nobody actually had. There was no demand for their software, so it was irrelevant that it existed, really.

→ More replies (9)

9

u/[deleted] Apr 07 '16

The good things /u/madmaxturbator mentioned were all about the code, not the product. It's why we have non-engineers around. We need people to remind us that the code isn't actually important, it's the product that people use that is important. The code can never be more important than the product (unless you get a cool engine that can be open-sourced or something, but that's a very rare occasion).

→ More replies (1)

6

u/codebje Apr 08 '16

GP didn't mention anything users want or need, just lots of code. Code is a liability, desirable outcomes are the asset.

→ More replies (1)
→ More replies (4)

7

u/spacelama Apr 08 '16

I've bought physical devices that didn't work for the first 2 weeks, or middle 3 months they were in my possession because some agile startup thought they could get away with breaking firmware and having no backout mechanisms because they thought could fix it some indeterminate time in the future.

Funnily enough, they don't get repeat customers.

5

u/CalvinLawson Apr 08 '16

I've worked at web startups that placed far too much importance on testing and process

Too much emphasis on process I'll totally buy. Too much emphasis on testing? Yeah, I don't believe that such a place even exists. What's your dever to tester ratio?

3

u/togrof Apr 08 '16

I've worked at a place where all QA efforts were devoted to testing and dealing with errors in production. There was no followup on why things went wrong in production. There was no code reviews. No efforts were made to improve specifications of the software to be written. Deadlines were tight and developers were regularly pushed to deliver faster so that there would be enough time for testing.

I don't know if that is common. But I've learned over the years that generally more efforts seem to be spent dealing with errors than preventing them in the first place. Testing is not preventive, it just shows the presence of defects.

→ More replies (1)

3

u/mmhrar Apr 08 '16

On the flip side, you have 'hackers' that can't see any further into the future than a month and their code ends up turning into a buggy, jumbled mess within a year because they lacked the discipline and planning required for a long term project.

Process is a balance, being strict can pay off if you intend for your product to work for years.

4

u/Sydonai Apr 07 '16

too much process will only allow your competitors to progress faster than you

Well the only solution then is to build things so menial or esoteric that you have no competitors.

→ More replies (2)
→ More replies (1)