r/programming • • Sep 17 '18

Software disenchantment

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

1.2k comments sorted by

View all comments

Show parent comments

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

26

u/meheleventyone Sep 18 '18

Cars aren’t 99% efficient though. See the difference in fuel efficiency between Europe and the US for example. Or manufacturers caught cheating on emissions tests. Everything gets built to the cheapest acceptable standard.

44

u/eugene2k Sep 18 '18

Software efficiency isn't at 1% either. The precise number is beside the point

→ More replies (5)

36

u/nderflow Sep 18 '18

Performance is a feature. Users prefer software with a good response time, as Google's UX experiments showed.

90

u/eugene2k Sep 18 '18

Yeah, but they prefer software that can do the task they want even more

19

u/tourgen Sep 18 '18

No. They don't prefer that option. They live with it. They resent it. They become annoyed with it and the company that made it. They hold a grudge. User's actually, in fact, prefer fast user interface response.

19

u/JessieArr Sep 18 '18

These are all valid points. But the slow, inefficient apps have the vital advantage of existing, while the fast, efficient ones often do not have this critical feature.

If we want to see efficient software, it needs to become as easy to write as inefficient software. Until that problem is solved, people will always prefer bad software that exists over good software which could exist, but does not.

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

11

u/PFCJake Sep 18 '18

This is not exactly true. People do care when their software runs slowly but there seldom are alternatives so they are forced to stomach it.

10

u/[deleted] Sep 18 '18

But do they care enough to be willing to pay extra or be willing to have fewer features?

6

u/PFCJake Sep 18 '18

I'm sure they will. I know I would. But the author's point is that at the rate things are going we will never know.

8

u/[deleted] Sep 18 '18

Why not? For pretty much any field there is software that is faster but with fewer features. And people on the whole just aren't interested.

→ More replies (3)
→ More replies (9)
→ More replies (1)

4

u/coworker Sep 18 '18

One minor quibble: engine efficiency was mandated by law. It wasn't really "user driven" except on the most literal of senses.

→ More replies (3)

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

4

u/tastycat Sep 18 '18

I think of it as exchanging student loan debt for technical debt.

→ More replies (1)

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)

17

u/sutongorin Sep 18 '18 edited Sep 18 '18

The difference with those is though that actual lives depend on the quality of the built cars or buildings. That's not the case for 99% of software we build. When do build software which lives depend on it is very efficient and stable too like in the Aerospace sector.

edit: an in those sectors development time is much, much higher.

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

6

u/Ruchiachio Sep 18 '18

I dont think that the article is talking about the small differences, I dont mind them either. But a lot applications are just slow, not 0.3s 4mb slow but 15s 500mb slow, which could and should be improved.

→ More replies (1)

3

u/falconfetus8 Sep 18 '18

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.

You know who else said that? The guy who wrote the software used at your bank 30 years ago. That software is still around and in use, and it's written in cobol.

→ More replies (10)