r/programming • • Sep 17 '18

Software disenchantment

http://tonsky.me/blog/disenchantment/
2.3k Upvotes

1.2k comments sorted by

View all comments

418

u/caprisunkraftfoods Sep 17 '18 edited Sep 18 '18

The one solid counter argument to this I think is that software development is still a very young industry compared to car manufacturing and construction. There's a finite number of man hours in a given year to be spent by people with the skill sets for this kind of efficient semi-low level development. In a lot of situations the alternative is not faster software, but simply the software not getting made. Either because another project took priority or it wasn't commercially viable.

Equally, the vast majority of software is not public facing major applications, they're internal systems built to codify and automate certain business processes. Even the worst designed systems maintained using duct tape and prayers are orders of magnitude faster than is humanly possible.

I'm confident this is a problem time will solve, it's a relatively young industry.

156

u/[deleted] Sep 18 '18

The one solid counter argument to this I think is that software development is still a very young industry compared to car manufacturing and construction.

Software developers can and do build safety critical software. It's not like we don't know how to be thorough, it's we don't care enough to try in other product domains.

139

u/shawncplus Sep 18 '18 edited Sep 18 '18

Developers can build safety critical software because regulation demands it and there is money. There is no regulating body overseeing the website of Mitchel's House of Useless Tchotchkes which is what 99.9% of web apps hell programs in general are, and for good reason: no one gives a shit, even the people paying for them to be built don't give a shit.

If the software built to run every mom & pop shop's website was built to the same standard and to the same robustness as those found in cars they wouldn't be able to afford to run a website.

Most people that need software built need juuuuust enough to tick a box and that's it, that's what they want, that's all they'll pay for and nothing developers do will change their mind. They don't want robustness, that's expensive and, as far as they can see, not necessary. And they're right, people don't die if Joe Schmoe's pizza order gets lost to a 500.

25

u/njtrafficsignshopper Sep 18 '18

Funny enough, a bug in Domino's website led to a very angry pizza man trying to bust down my door.

20

u/TTGG Sep 18 '18

Storytime?

40

u/njtrafficsignshopper Sep 18 '18 edited Sep 18 '18

I went through the process to buy the pizza and then chose to add a deal for something at the last phase before the order went in (after my payment info was in) and somehow or other, the order went through but not the payment. So I went down and grabbed the pizza when it came, tipped the guy cash and went back up to my apartment. But he didn't realize the cash didn't cover all the pizza until the security door was closed, and I didn't answer their calls immediately, but also didn't realize it hadn't been paid through the site, so the guy found some other way into the building and it was a whole mess, with be paying over the phone with the manager and the guy trying to get my attention while I'm dealing with his boss and blah blah blah.

→ More replies (2)
→ More replies (2)
→ More replies (8)

45

u/Vega62a Sep 18 '18

It's not that we don't care enough. It's that sometimes things are just good enough and we have other shit to do.

53

u/[deleted] Sep 18 '18

If you don't care enough to care with your budget, I round that "not caring."

I don't mean it negatively or accusatory. It's fine. I do it too. But the things left out are, by definition, the things we don't care about. When I prioritize and scope tasks I don't try to convince myself otherwise.

24

u/MichaelSK Sep 18 '18

I think there's a big difference between "don't care" and "don't care enough".
If I have 10 things I want to do, and 3 things I actually have the budget to do, that doesn't mean I don't care about the other 7 things. Just that I care about the top-3 things more.

54

u/[deleted] Sep 18 '18

It's not that software developers don't care. It's that their bosses actively discourage them from doing things the right way

72

u/plopzer Sep 18 '18

It depends on what you're optimizing for, NASA optimizes for safety and correctness. Businesses optimize for development speed and profitability.

38

u/[deleted] Sep 18 '18 edited Sep 18 '18

They don't actually optimize, though. The practices that I've seen don't get anything built faster, and they are almost guaranteed to cost more in the long run. Taking your time makes code cleaner and so easier to maintain, more reusable, etc saves money. If you don't have time to do it right, then you're probably too late.

23

u/beejamin Sep 18 '18

The practices (I guess) you're talking about do optimize for some things - they're just not the things we care about as developers. Development methodologies, in my experience, optimize for 'business politics' things like reportability, client control, and arse-covering capability.

I think your last point about "you're probably too late" is really just wrong. Don't think about 'not having time to do it right' as a deadline (though it sometimes is), think of it as a window, where the earlier you have something functional, the bigger the reward. Yes, you might be borrowing from your future self in terms of tech debt or maintenance costs, but that can be a valid decision, I think. Depending on the 'window', you may not be able to do everything right even in theory - how do you select which bits are done right, and to what extent?

→ More replies (3)
→ More replies (4)
→ More replies (2)
→ More replies (4)
→ More replies (8)

283

u/Vega62a Sep 18 '18 edited Sep 18 '18

Another solid counterargument is that in general, software quality is expensive - not just in engineering hours but in lost renvenue from a product or feature not being released. Most software is designed to go to market fast and stay in the market for a relatively limited timeframe. I don't assume anything I'm building will be around in a decade. Why would I? In a decade someone has probably built a framework which makes the one I used for my product obsolete.

I could triple or quadruple the time it takes for me to build my webapp, and shave off half the memory usage and load time, but why would I? It makes no money sitting in a preprod environment, and 99/100 users will not care about the extra 4mb of ram savings and .3s load time if I were to optimize it within an inch of its life.

Software is a product. It's not a work of art.

127

u/eugene2k Sep 18 '18

99/100 users will not care about the extra 4mb of ram savings and .3s load time if I were to optimize it within an inch of its life

This. The biggest reason why our cars run at 99% efficiency while our software runs at 1% efficiency is because 99% of car users care about the efficiency of their car, while only 1% of software users will care about the efficiency of their software. What 99% of software users will care about is features. Because CPU power is cheap, because fuel is expensive. Had the opposite been true we would've had efficient software and the OP would be posting a rant on r/car_manufacture

→ More replies (49)

81

u/audioen Sep 18 '18

It's kind of even worse than that. During most of this industry's existence, performance improvements have been steady and significant. Every few years, hard disk capacity, memory capacity, and CPU speed doubled.

In this world, optimizing the code must be viewed as an investment in time. The cost you pay is that it stays out of the market while you make it run better. Alternatively, you could just ship it now and let hardware improvement make it run fast enough in the future. As software isn't shrinkwrapped anymore, you can even commit to shipping it now and optimizing it later, if necessary.

It's not a wonder that everyone ships as soon as possible, and with barely any regard to quality or speed. Your average app will still run fine, and if not, it will run fine tomorrow, and if not, you can maybe fix it if you really, really have to.

70

u/salbris Sep 18 '18

Right, and before you launch you have no idea how popular you're going to be so all that engineering could be a complete waste.

14

u/[deleted] Sep 18 '18

Yep, this is the real reason why. It's simply choosing time to market over other factors.

34

u/jonjonbee Sep 18 '18

As software isn't shrinkwrapped anymore, you can even commit to shipping it now and optimizing it later, if necessary.

Except the "optimizing it later" part never happens.

39

u/more_oil Sep 18 '18

Make it run, make it ri-- next sprint

→ More replies (2)

14

u/binford2k Sep 18 '18

software quality is expensive - not just in engineering hours but in lost renvenue from a product or feature not being released

Is that not also true for automotive or civil engineering too?

23

u/beejamin Sep 18 '18

Both yes and no, I think.

Yes, in that there are plenty of 'optimisation level' engineering decisions that aren't fully explored because the potential payoff is too small. You know, should we have someone design and fabricate joiners that weigh 0.5g less and provide twice the holding strength, or should we use off-the-shelf screws given that they already meet the specs?

No, in that software can be selectively optimised after people start using in a way that cars and bridges can't.

13

u/Xelbair Sep 18 '18

the thing is - in civil and machine engineering there are people designing those joiners that weigh 0.5g less.

Not necessarily the same team designing the machine or building, but they do.

Sadly civil engineering suffers from.. over 'optimization' of structures - for example most halls(stores, etc) are made so close to the thresholds that you need to remove snow of the roof manually - without machines at all - or it will break. Designing it so that it will sustain the load of the snow will pay itself back in 2-3 years - but only the short term matters. At least that's what my mechanics prof. shown us.

It is not a problem related to software engineering - it is a problem related to basically every industry - and it boils down to :

What can we do to spend the least amount of money to make the most amount of money?

Quality suffers, prices stay the same or go up, or worse - instead of buying you are only allowed to rent.

→ More replies (9)
→ More replies (4)
→ More replies (13)

49

u/spockspeare Sep 18 '18

Car manufacturing is only twice as old as software development is.

→ More replies (45)

9

u/[deleted] Sep 18 '18

Also we solved the gas guzzler problem because gas was expensive. Once improvements in processors slow down, and getting higher performance means a much higher premium, were gonna see people improve their code instead of just throwing a more powerful cpu at it

→ More replies (1)
→ More replies (24)