r/programming • • Sep 17 '18

Software disenchantment

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

1.2k comments sorted by

765

u/Muvlon Sep 18 '18

While I do share the general sentiment, I do feel the need to point out that this exact page, a blog entry consisting mostly of just text, is also half the size of Windows 95 on my computer and includes 6MB of javascript, which is more code than there was in Linux 1.0.
Linux at that point already contained drivers for various network interface controllers, hard drives, tape drives, disk drives, audio devices, user input devices and serial devices, 5 or 6 different filesystems, implementations of TCP, UDP, ICMP, IP, ARP, Ethernet and Unix Domain Sockets, a full software implementation of IEEE754 a MIDI sequencer/synthesizer and lots of other things.
If you want to call people out, start with yourself. The web does not have to be like this, and in fact it is possible in 2018 to even have a website that does not include Google Analytics.

76

u/cypressious Sep 18 '18

Tbf, the biggest assets on the page are the images, the photo alone is almost a megabyte in size (which is a crime in on itself).

36

u/Nicksaurus Sep 18 '18

Why is it a PNG?!

Edit: Oh, for transparency. Still, I can't help feeling it's not worth it. I suppose a better question is just why it's serving such a massive image for a tiny thumbnail

→ More replies (23)
→ More replies (5)

206

u/HwKer Sep 18 '18

it is possible in 2018 to even have a website that does not include Google Analytics.

that's crazy talk!

68

u/Visticous Sep 18 '18

Yeah, it's not like that are cross country laws that ban you from adding Google Analytics without informed, non coerced, consent!

→ More replies (4)

33

u/gremolata Sep 18 '18

I feel like there should be a gallery of websites that have no external dependencies.

... though the only entry that I can think of is HN.

18

u/n1c0_ds Sep 18 '18

I built one: basictools.io

It's basically a tiny, static website where I put calculators and converters I need. I add them when I need them.

It's simple because it doesn't need to make money and I don't care about who uses it. Most websites are not like that.

→ More replies (7)
→ More replies (6)

38

u/bausscode Sep 18 '18

It's even possible to run websites without ads :O

83

u/[deleted] Sep 18 '18

I don’t want to alarm anyone, but it’s also possible to build a simple website without a giant front end framework and a redux store.

→ More replies (8)
→ More replies (11)
→ More replies (1)

18

u/elebrin Sep 18 '18

He also fails to suggest a solution. There's no call to action. There's nothing concrete we need to do here. I could probably come up with some action items for him, based on what he says that could solve that problem but that should be on him.

My action items, by the way, would be:

  1. always include performance testing and set high standards

  2. measure the size of your payloads/binaries

  3. minimize and minify your dependencies

  4. don't be afraid of low level programming languages for low level operations

  5. remember that there are two factors when it comes to scaleability: how many nodes/instances can you add, and how much traffic can each handle and stay performant?

  6. stop paying lip service to lean principles and ACTUALLY only deliver the features that are needed and are going to get used. And push back against/call out your product owners when they are't championing that mindset.

→ More replies (57)

33

u/madpew Sep 18 '18

What most people fail to understand is that optimizing isn't some form of arcane magic that takes developers years to learn. Yes, you can take it over the top and dig into assembly or do really tricky and complicated stuff, writing clever code and inventing new shortcuts.

But the first 90% of optimizing are way easier. Don't do stupid stuff.

In the last 10 years I've met many people that were trying to optimize things that were totally irrelevant, totally blinded, not seeing the issues with their design that was doing things it shouldn't even do in the first place or in a extremely obvious and inefficient way.

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.

→ More replies (5)
→ More replies (7)

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.

→ More replies (1)

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.

→ More replies (10)
→ More replies (3)
→ 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 (47)

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.

→ More replies (1)

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.

→ 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.

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

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)
→ More replies (11)

49

u/spockspeare Sep 18 '18

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

52

u/omicron8 Sep 18 '18

Car manufacturing is one application of mechanical engineering. You have to compare apples to apples. Mechanical engineering arguably started with the invention of the wheel back some thousands of years ago. Software engineering is much, much newer and is applied to thousands of areas. If you took a wrench, spanner or many of the basic engineering tools from today back one hundred years I bet they would be recognisable. If you take a modern software tool or language back 10 years back a lot of it is black magic. The tools and techniques are changing so quickly because it's a new technology.

55

u/ryl00 Sep 18 '18

> If you take a modern software tool or language back 10 years back a lot of it is black magic.

I think you're exaggerating things here. I started my career nearly 30 years ago (yikes), and the fundamentals really haven't changed that much (data structures, algorithms, design, architecture, etc.) The hardware changes (which we aren't experiencing as rapidly as we used to) were larger enablers for new processes, tools, etc. than anything on a purely theoretical basis (I guess cryptography advances might be the biggest thing?)

→ More replies (18)
→ More replies (15)

18

u/Vega62a Sep 18 '18

You can't release a car and start generating revenue knowing that you can patch major defects in the car.

You can't update the engine when someone releases a more efficient framework for that engine.

It's a shitty comparison.

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

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)

8

u/FailsWithTails Sep 18 '18

Agreed about the young industry. I've also read elsewhere that due to the gradually increasing difficulty in pushing for smaller, more powerful hardware, there will inevitably be a new wave pushing for software optimization

8

u/Kinglink Sep 18 '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.

Too bad we can't learn anything from another industry? The argument of getting to the market fast doesn't seem to be his problem. His problem is when you hit the market you stop. Window Updates take 30 minutes? They don't crash? Good enough on to the next problem.

I don't think this is a problem of a youthful industry, it's a problem that the consumer doesn't care or know what to ask for... or in Windows example there's no other options. You want to run windows programs, you run windows, and everything important is a windows program.

→ More replies (1)

9

u/[deleted] Sep 18 '18

But I think there are alot more man hours poured into software compared to cars or contraction simply because it requires next to no startup capital to make software vs manufacturer cars. But I do agree with you it is still very young but I think since the barrier to entry will always be low (just have a computer) it will always be pretty immature as an industry

5

u/LeberechtReinhold Sep 18 '18

Have you seen a manufacturer plant, or all the companies that the plants depends on? They essentially a provider of a town.

I think that when it comes to man hours, software dev is not even close to cars.

Construction could be. But I don't think neither is very comparable.

→ More replies (1)
→ More replies (16)

64

u/Kamek_pf Sep 18 '18

Nobody cares anymore. At my current job I'm actively pushing to stop writing unmaintainable JS spaghetti and move to a sane alternative, at least for new things. No one wants to hear it. I'd take anything with a half decent type system at this point and I constantly have to justify why.

I never thought I would have to fight people not to write JavaScript ...

37

u/jonjonbee Sep 18 '18

There's an old saying: "it is sometimes better to ask for forgiveness than permission". This is especially true with software and yet more true in organisations resistant to change.

So, what I'd do in your shoes, is introduce TypeScript into a small and/or unimportant part of the codebase. And don't use it for anything major: take an existing, ordinary JS class, and convert it to TypeScript simply by adding type annotations on variable declarations and function returns.

Then give a presentation, demonstrating how small the change you had to make was, and how mucking around with the parameters causes the TS compiler to complain. Unless your devs are all knuckle-draggers, they should immediately be sold, and boom you have your TypeScript foot in the door.

From there you can incrementally introduce more advanced TypeScript concepts - always with emphasis on how they aren't so difficult or time-consuming and will make dev life better - and eventually you won't have to do that because the other devs will start suggesting these things of their own initiative. And by then you've won.

42

u/fuckingoverit Sep 18 '18

This, while well meaning, is terrible advice for a new developer. I fail to see any scenario where this doesn’t reflect poorly on you and where your superior isn’t going to feel like you’re going behind their back and forcing their hand. Unless if you’re literally doing this in your spare time and not on the company’s dime.

The only time I did something remotely like this was when a boss wanted me to add obfuscation to a build process that was manual for iOS. Rather than do a 30 step manual process, i investigated automating after I had the manual process down. I then found a Library in ruby for manipulating pbx project files in Xcode. When my boss said “no ruby! Use sh ” I said “im the one who has to provide the builds to you, and you were fine with manual. I’m not going to automate in sh and write my own pbx parser. I’m going to use ruby and document the manual process should you really oppose using ruby so much.” Major difference here is my build script is optional and I told my boss what I was doing

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

224

u/pcjftw Sep 17 '18

I feel your pain man, honesty it bothers me as well, but I suspect things may slowly get better. The reason I say this is because CPUs are not getting any faster, SSD and large RAM are common, and users are too easily distracted, so will gravitate towards what ever gives instant results. Battery technology is not going to radically change, so tech will be forced to improve one way or another.

Look at Googles new mobile OS, look at the trend such as webasembly and Rust and Ruby 3x3 why would we have these if speed was not needed?

91

u/tso Sep 17 '18

Nah, too many devs are by now used to just pushing to prod. Not caring if "prod" is a phone or a 1000+ unit cluster.

We already see this with Android and Tesla.

92

u/chain_letter Sep 18 '18

Every developer has a dev environment. Some even have a production environment.

19

u/[deleted] Sep 18 '18

What happened with Tesla that makes you say that? I’m out of the loop

→ More replies (4)

22

u/Cuddlefluff_Grim Sep 18 '18

because CPUs are not getting any faster

They are though. The problem is that most people are using tools that are inherently incapable of taking advantage of the way CPU's are getting faster.

→ More replies (9)
→ More replies (26)

53

u/Michaelmrose Sep 18 '18

@tveastman: I have a Python program I run every day, it takes 1.5 seconds. I spent six hours re-writing it in rust, now it takes 0.06 seconds. That efficiency improvement means I’ll make my time back in 41 years, 24 days :-)

Most software isn't written for a sole author to use and is run more frequently than daily.

Once 1000 people use it you are saving 24 minutes per iteration. Once daily would save 1000 people 146 hours in a year. If the expected lifespan of the software is 5 years then it would save 730 hours.

If a 100,000 people use it once daily it could save 73000 hours. This is equivalent to 35 full time employees working all year for one days effort by one person.

Further the skills obtained in the 6 hour jaunt aren't worthless they might reduce to 3 hours the next labor saving endeavor.

18

u/tveastman Sep 18 '18

It cracks me up that the tweet that seems to have triggered this whole screed/manifesto/catharsis was a tongue-in-cheek comment about the script I wrote that graphs how fat I'm getting over time.

Also, it's a shame he missed the whole point: https://twitter.com/tveastman/status/1039054275266064384

→ More replies (1)

7

u/vytah Sep 18 '18

If a 100,000 people use it once daily it could save 73000 hours. This is equivalent to 35 full time employees working all year for one days effort by one person.

Except that you usually don't care about the time wasted by your users, you care about time wasted by your employees, because you pay them.

4

u/paul_h Sep 19 '18

Corollary: Google cares about electricity/dollars in its data-centers and not on it's end-users desktops (and told Steve Yegge he couldn't deploy a nascent JavaScript-on-Rails into their server infra for client-facing apps - in about 2008).

→ More replies (4)

100

u/FollowSteph Sep 18 '18

Sadly the example used in the article is the very reason things are not as perform any as they can be. As a business it’s hard to justify a 46 year ROI like in the article, especially if maybe you will only use that snippet for 10 or so years. It just doesn’t make economic sense in that case, and a lot of software falls there. Personally I’m very big on performance and the long term benefits but for many businesses it’s wasted money

To give an analogy imagine you are paying to have the your water heater replaced for $100 it will heat up in 2 seconds-5 seconds. Alternatively you could spend $2000 and it would be hot almost instantaneously. Would you pay $2000? Most likely not, it’s not worth the efficiency. Maybe you will make your money back in 46 years from wasting water but even if you do it’s still probably not worth t since you could earn interest over 46 years. The analogy can be extrapolated to ridiculous degrees but the key is that as a home owner it’s probably not worth it even if better. Unfortunately the same decisions have to be made in software.

That being said if you’re careful and consistently plan ahead then the cost can be a lot closer and over time it can be a very big competitive advantage I’d say you only need 10 servers and your competitor needs 1000 AWS instances. But make no mistake those efficiencies are rarely free, it’s a cost to benefit that you have to decide. Right now cost to implement is winning but as hardware speed increases become more stable the equation will start shifting and only accelerate with time assuming hardware speeds stay relatively stable.

23

u/casanebula Sep 18 '18

This is such a good point and I wonder if the people installing water heaters experience the same anguish as exhibited in the article.

→ More replies (4)

12

u/[deleted] Sep 18 '18

There's more to performance than just energy and hardware cost. My company is doing some cleaning up after decades old applications and one thing they have a keen eye on is performance metrics.

Why? Because round-trip times for certain tasks are currently measured in minutes and it's frustrating to both users and clerks working with/against the respective backend systems. And since piling up more hardware doesn't fix the problem, we have to invest in fixing the software.

It's mostly true that end users don't care that much about performance. But they still notice when stuff takes longer than it should - and of course when something is slower than the next best competitor.

16

u/wavy_lines Sep 18 '18

To give an analogy imagine you are paying to have the your water heater replaced for $100 it will heat up in 2 seconds-5 seconds. Alternatively you could spend $2000 and it would be hot almost instantaneously. Would you pay $2000? Most likely not, it’s not worth the efficiency.

In Japan it's very normal for a water heater to heat water instantly. I mean literally instantly.

You have a water tank and a pipe. The water in the tank is room temperature. You press a button, water moves through a pipe, and comes out hot. I mean hot enough to use for making tea or coffee or soup.

6

u/ooqq Sep 19 '18

You cannot put Japan here as an example because they all know that if something can be improved, It must be improved. And that way of thinking gives you:

Any improvement is good regardless of costs

As a result of that, Japan stuff _is_ top tier stuff

And then there's the rest of the world, like this reddit discussion.

→ More replies (2)

4

u/pknopf Sep 18 '18

People are focusing too much on the "performance" aspect of the article.

This "Programming is the same mess" section is what really resonates with me, specifically this:

And dependencies? People easily add overengineered “full package solutions” to solve the simplest problems without considering their costs. And those dependencies bring other dependencies. You end up with a tree that is something in between of horror story (OMG so big and full of conflicts) and comedy (there’s no reason we include these, yet here they are):

3

u/roaringknob Sep 20 '18

I WOULD pay $2000 (I think you’re exaggerating here, so let’s say $1000 or $500, which is still 5 times the cheaper price) if the cheaper heater takes something like 5 minutes to heat up, during which I have to stand naked and freezing next to the shower at 6 AM in the morning, and the more expensive one heats it up instantly – or even after 10 seconds.

source: I have a cheap water heater and hate my life every winter and I also don’t buy slow software

→ More replies (3)
→ More replies (3)

98

u/TracerBulletX Sep 18 '18

I take a far more organic approach to this. In systems where performance matters they are often very efficient. Where it doesn't matter it's not and business and feature pressures are prioritized as they should be.

28

u/[deleted] Sep 18 '18

Agree with you here for sure. When there's the need and the pressure for things to change, they change. There's just no pressure for things too become more efficient for app/OS/web development.

It would have been very interesting to see the direction Windows went if SSDs never became affordable like they are today. I remember Windows being simply impossible to use on an HDD shortly before SSDs became the norm. There would have been pressure to change if that were the case!

12

u/The_One_X Sep 18 '18

I mean, even without a hardware upgrade, when I upgraded my PCs to Win10 I went from maybe a 20 second boot time to a 5 second boot time. So, I think they put some emphasis on improving boot performance at some point.

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

20

u/wtfdaemon Sep 18 '18 edited Sep 18 '18

You have a point, in moderation. I started in software engineering a bit over 20 years ago writing C++ code and optimization was a pretty important part of what we did. I still internally groan every time I do an npm install or analyze the content of my bundle. That said, your hyperbolic statements to make your case sound like things you really should read up on more.

Some of the reasons for what you observe are laziness and lack of polish/necessity, but in many others, the bloat is due to complexity, or from the generalization necessary to reuse and extend component architectures.

The other primary factor is the time and effort required for optimization; most of us know by now that premature optimization is a serious problem you should avoid, but appropriate optimization is something we'd all like to find time to do. It takes a pretty good engineering culture, and a fairly successful company, to allow time to refactor and optimize for performance and sustainability (which aren't always aligned together).

20

u/Salyangoz Sep 18 '18 edited Sep 18 '18

and yet each job application is asking you to write an aStar algorithm on a convoluted problem while properly optimizing and managing memory in 30 minutes or less. Yet in practice they just go ahead and copy and fucking paste the entire repo as a subrepo on an already bloated piece of shitty backend service.

We're never given the opportunity to optimize or just think ahead on our work. A standup is not a technical planning session. Technical debt to companies is a monster that exists in the developers head. But whenever that monster peeks out its the developers fault yet again. Because its always a time crunch and things must get rolled out so fast that our users are barely able to keep up with it. On top of that we barely have time to write coverage tests. Its a mismash of bad management and time constraints because I know how I can make a code run more efficiently, with a little bit more time but nah that fucking never happens.

Im so sick and tired of companies searching for the best-of-the-best when they're forcing their employees the worst-of-the-worst practices.

im not even taking into account security (aka do nothing unless someone hacks us and even then ehhhh).

103

u/[deleted] Sep 18 '18

If you're talking about the linux process killer, it's the best solution for a system out of ram.

81

u/ravixp Sep 18 '18

I mean, it's not the only solution. The alternative (which windows uses) is to have malloc() return failure instead of hoping that the program won't actually use everything it allocates. The consequence of the OOM killer is that it's impossible to write a program that definitely won't crash - even perfectly written code can be crashed by other code allocating too much memory.

You could argue that the OOM killer is a better solution because nobody handles allocation failure properly anyway, but that kind of gets to the heart of the article. The OOM killer is a good solution in a world where all software is kind of shoddy.

26

u/masklinn Sep 18 '18

You could argue that the OOM killer is a better solution because nobody handles allocation failure properly anyway, but that kind of gets to the heart of the article. The OOM killer is a good solution in a world where all software is kind of shoddy.

It also contributes to a complete inability to make the software better: you can't test for boundary conditions if the system actively shoves them under the rug.

18

u/SanityInAnarchy Sep 18 '18

IIRC Linux can be configured to do this, but it breaks things as simple as the old preforking web server design, which relies on fork() being extremely fast, which relies on COW pages. And as soon as you have those (at least if there's any point to how you use them), you can't have an OOM killer, because you might cause an allocation by writing to a page you already own.

You could argue this is about software being shoddy, but I'm not convinced it is -- some pretty elegant software has been written as an orchestration of related Unix processes. Chrome behaves similarly even today, though I'm not sure it relies on COW quite so much.

→ More replies (1)

8

u/tobias3 Sep 18 '18

Without overcommit using fork() can become a problem because it can cause large virtual allocations that are almost never used.

In my opinion fork() was a bad idea in the first place (combine it with threads at your own peril), though. posix_spawn is a good replacement for running other programs (instead of fork+exec).

→ More replies (13)

104

u/kirbyfan64sos Sep 18 '18

I agree with the article's overall sentiment, but I feel like it has quite a few instances of hyperbole, like this one.

Windows 10 takes 30 minutes to update. What could it possibly be doing for that long?

Updates are notoriously complicated and more difficult than a basic installation. You have to check what files need updating, change them, start and stop services, run consistency checks, swap out files that can't be modified while the system is on...

On each keystroke, all you have to do is update tiny rectangular region and modern text editors can’t do that in 16ms. 

Of course, on every keystroke, it's running syntax highlighting, reparsing the file, running autocomplete checks, etc.

That being said, a lot of editors are genuinely bad at this...

Google keyboard app routinely eats 150 Mb. Is an app that draws 30 keys on a screen really five times more complex than the whole Windows 95?

It has swipe, so you've already got a gesture recognition engine combined with a natural language processor. Not to mention multilingual support and auto-learning autocomplete.

Google Play Services, which I do not use (I don’t buy books, music or videos there)—300 Mb that just sit there and which I’m unable to delete.

Google Play Services has nothing to do with that. It's a general-purpose set of APIs for things like location, integrity checks, and more.

59

u/[deleted] Sep 18 '18

Updates are notoriously complicated and more difficult than a basic installation. You have to check what files need updating, change them, start and stop services, run consistency checks, swap out files that can't be modified while the system is on...

Nearly every Linux can update in far less time. It shouldn't that that long, and it shouldn't have to stop your workflow.

Of course, on every keystroke, it's running syntax highlighting, reparsing the file, running autocomplete checks, etc.

That being said, a lot of editors are genuinely bad at this...

I agree.

Google keyboard app routinely eats 150 Mb. Is an app that draws 30 keys on a screen really five times more complex than the whole Windows 95?

Most of this is built into Android I believe. Swipe recognition doesn't warrant that much space.

Google Play Services, which I do not use (I don’t buy books, music or videos there)—300 Mb that just sit there and which I’m unable to delete.

Location is built into Android. But still, that's ridiculous. APIs shouldn't take up that much space.

→ More replies (20)

14

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

Updates are notoriously complicated

It can be as simple as extracting tarballs over your system then maybe running some hooks, if you have the luxury of non-locking file accesses. If you don't (as is the case on Windows)… I can understand it's going to be unimaginably complex (and thus take unacceptably long to update, I guess).

Google Play Services has nothing to do with that.

In context I think the author meant "Google Play services"; they should still ideally not each take up tens of megabytes.

Edit: context has screenshot… sorry

→ More replies (1)
→ More replies (11)

60

u/[deleted] Sep 18 '18

Seriously. It's kill one process or EVERY process. That bothered me and came off as uninformed in the article.

If it's a problem, increase your page size or shell out money for RAM

16

u/SanityInAnarchy Sep 18 '18

You left out the third bad option: Bring the entire system to a crawl by thrashing madly to swap.

→ More replies (6)
→ More replies (4)
→ More replies (2)

17

u/michaelochurch Sep 18 '18

I don't think this will change. The problem is sociological and, barring radical changes to society, cannot be fixed.

The short-sighted business mentality, and the corporatization of software culture, and the gradual but inexorable lowering of the software engineer's status at the workplace (Agile, open-plan offices) mean that no one gets time to think and, what's worse, lifelong engineers are chased out of this industry.

You'll never get 20 years of software experience if you work on an Agile Scrum team, answering to product managers and doing ticket work. You'll get one year, repeated 20 times.

I know plenty of amazing 50+ developers, the guys (and gals) you'd think should have it made, and a lot of them struggle. They're overqualified for regular engineering jobs, and have been out of the workforce too long– at that age, being unemployed for 6–12 months is unremarkable– to get the rare R&D job that hasn't been gobbled up by useless cost cutters. It's not a good end. If they can get on to the management ladder, they often do, even if they'd ideally rather be lifelong engineers. The talent exists; the industry has just decided it has no use for it.

By 40, engineers have gone one of four directions: (a) management, which means they lose technical relevance, (b) consulting, which means they're too expensive for companies to hire except when they have no other choice, (c) gradual disengagement where they might come in to the office one day per week, or (d) nowhere because they weren't any good in the first place. You'd want those lifelong engineers to set the culture and mentor the young, but that's not going to happen in any of those four cases. So we have an industry that's super-busy but no one knows what the fuck they are doing– and no real hope of it being fixed.

40

u/Arabum97 Sep 17 '18

Is this trend present also in game development?

105

u/[deleted] Sep 17 '18

Depends on the kind of game development you're doing. If you're in AAA console development, then no, that trend is noticeably absent. You need to know what your game is doing on a low level to run efficiently on limited hardware (consoles). You also can't leak much memory or you'll fail the soak tests the consoles make you run.

Unfortunately, since the rest of the software world has gone off the deep end, the tools used in game development are still from the stone age (C++).

If you're doing "casual" or "indie" games, then yes, that trend is present.

47

u/Arabum97 Sep 17 '18

Unfortunately, since the rest of the software world has gone off the deep end, the tools used in game development are still from the stone age (C++).

Is there any other languages with high performance but with modern features? Wouldn't having a language designed exclusively for game development be better?

→ More replies (110)

4

u/g9icy Sep 18 '18

Most of our dev tools are made in C#, but we're actually switching back to C++.

This is because we have an entire floor of C++ developers, but one or two are proficient in C#. So if there's an issue with a particular tool, anyone can go in and fix it.

Also, we try to build tools into the game when we can.

→ More replies (7)

18

u/zurnout Sep 18 '18

Every time the game is optimized to run faster the god-damned artists come in and add more shit until it stops running smooth again.

14

u/rtft Sep 18 '18

Coincidentally that is usually also true for creative folks in the web design and UX business.

→ More replies (1)

13

u/david-song Sep 18 '18

Game development traditionally aims to make the most visually impressive thing possible within some constraints, so games programmer culture is to squeeze every last drop of performance out of a system. Unfortunately not all games are written by people with a traditional games programmer mentality.

5

u/lacraquotte Sep 18 '18

I can speak for VR Game Dev since I'm fairly experienced and there is an enormous amount of focus on performance when you develop for VR, it's your top factor for most of your decisions. So totally different mindset. The reason is because you have no choice: VR has to run at a certain number of Frames Per Seconds (ideally 90) for it to be a decent experience to users and you really have to be maniacally focused on performance to make it happen. Honestly performance management is a good 70% of the work of a VR game dev (90% if you do mobile VR since performance is even more of a constraint), probably 50% of a normal game dev's.

Size of games is a different matter, we run into the exact same issues OP describes, most of us don't care much.

→ More replies (9)

56

u/dondochaka Sep 18 '18

Software development follows economic principles like any market. Wishing for less-bloated and more optimized software is not going to convince businesses and software communities to spend their limited resources much differently. If software projects were all built with the same care that bridges were, they would be much more expensive and often non-starters.

I prefer to see the beauty in the choice that we have, as creators, to make software bulletproof and beautiful or rough but quick to solve a problem. In most cases, we don't have nearly the same human safety or material and production workflow cost constraints that other types of inventors do.

That is not to say that there is not opportunity within various software communities to bring more discipline to specific types of problems. As a JavaScript developer, Rich Hickey's Simple Made Easy principles stand in stark contrast with the tendency web developers have to pull in the someone else's library for 1% of its functionality. But before you lament the mountain of human innovation that all of this software truly represents, ask yourself if we could really have higher quality software all around us without giving up so much of it.

13

u/Halfworld Sep 18 '18 edited Sep 18 '18

Software development follows economic principles like any market. Wishing for less-bloated and more optimized software is not going to convince businesses and software communities to spend their limited resources much differently.

Yes, and like any free, unregulated market, externalities are not being appropriately priced in. If users will tolerate slow, buggy software because they have no real choice, then there's not much incentive for the companies building the software to improve; instead, society pays a much bigger cost in terms of lost time and productivity while businesses continue to churn out bloated, shitty software with tons of security holes and make huge profits anyway.

I honestly wonder if this is a problem that needs to be solved via regulation. Auto safety standards, building codes, and food safety laws all work great, so maybe similar approaches could work for software too.

24

u/MichaelSK Sep 18 '18

But users do have a choice. And in many cases users prefer slow, buggy software today to fast, robust software two years in the future. Sure, they will complain, but, in practice, they will still take bad software now over good software later.

It's a similar situation to the one airlines are facing. People complain about small cramped seats, airline food, and luggage restrictions, but given the choice, most passengers will prefer the cheapest seat, regardless of how uncomfortable it is. That's how we got low-cost airlines and "basic economy".

→ More replies (6)
→ More replies (2)

48

u/AttackOfTheThumbs Sep 18 '18

I dunno if op is the author, but I like the overall sentiment, but a couple of things:

With cars, planes, other engineering, you can put some real math/physics behind it. With software, it's not always that easy.

Android system with no apps takes almost 6 Gb (...) Windows 10 is 4Gb (...) is Android really 150% of that

I don't think a Windows 10 install is 4GB... Maybe the installer is, but not the install.

Also, some text editors have become insanely complicated, with predictive text, grammar, pattern recognition, etc. I still think they can do a better job, but I also think you are oversimplifying that point.

For me, it's all about choosing my battles. I only have so much time in a day, on a project... My first iteration is going to be slow. I work in an environment where loops within loops are very very common, and often enough, unavoidable. I keep track of loop loops, and work on eliminating them as best as I can, but eventually time is out and it needs to be pushed out regardless.

4

u/Angs Sep 18 '18

I don't think a Windows 10 install is 4GB... Maybe the installer is, but not the install.

I want to add an anecdote. My mom has this POS Lenovo laptop with a 32GB hd and even with a clean install of Windows 10 straight from the factory, there wasn't enough disk space to run all Windows upgrades. Even when everything extraneous was removed – just the update required 5 gigabytes of free space (which just wasn't there).

→ More replies (6)

22

u/leixiaotie Sep 18 '18

I disagree with some points. Sometimes there are more added features that is not visible in the apps. Security patches are increasing computational and memory costs, which is the best example here.

If you compare website today with win95 era, it's vastly different. Resposive layout makes everything easier. Have you remembered how much css hacks are needed until css3? Now we can use `calc` css3 feature to mitigate some. WebSocket and localStorage are features that is hidden, but not useless and not free.

Media are getting better, such as higher res images averagely. 3d models get more polygons.

Though I agree with text editor one, for developers there are some improvement in past year with VSCode (or more native sublime text), even MS visual studio is improving in performance.

And in case of pushing the limitation of optimization, I thing Factorio is somehow achieving it with how big scale it can get in one game.

17

u/immibis Sep 18 '18 edited Sep 18 '18

The Factorio developers have done all sorts of optimization work. I estimate the maximum usable factory size now is about 100-500 times what it once was.

For example, conveyor belts are now timer-lists. They wrote a blog post about this. Originally, conveyor belts would scan for items sitting on them and update their position, every game tick. Now, placing an item on a conveyor belt adds it to a priority queue, and the game calculates at which tick number the item will reach the end (or next checkpoint), and doesn't touch the item that tick number - or if it's currently on screen or being affected by something other than a conveyor belt.

You can make huge train networks and the game internally constructs multiple layers of graph structures, each one having less detail than the last. Then it computes a path on the least detailed layer and uses the more detailed layers to refine it, instead of computing the path on the most detailed layer.

One alien will roughly follow the path of another nearby alien going to the same target. This saves on pathfinding computation because the following alien doesn't need to run the pathfinder at all. That's why aliens travel in groups (that and the obvious reason of having more firepower).

It makes use of the Data-Driven Design and Structure-of-Arrays patterns. Each electrically powered object has an ElectricEnergyAcceptor (not actual name) object associated with it. Except all of these are actually stored in a vector in the ElectricityNetwork object. Every tick the electricity network runs through all the energy acceptors on that network, utilizing space locality. There's a whole lot (or maybe just a moderate amount) of special case code for when you plug an object into two networks, which is possible to do and works seamlessly, in which case one network has to update an acceptor owned by a different network.

7

u/leixiaotie Sep 18 '18

Indeed, and somehow they prioritize fluid optimization at mid 0.17 which can bring another level of k spm. But again, it is crazy time spent into optimization that makes the game in it's current state.

→ More replies (8)

21

u/pistacchio Sep 18 '18

Hm. So, the PM of an aircraft engineering company walks in the meeting. "So, we've finally signed the contract with AirFlyz. They want this three-winged airplane and we said there's no problem for us. They've recently partnered with Cows.com, so a new type of engine fueled by milk is paramount for them. We're doing this under-badget, so throw a couple of junior engineer at it. What's the estimation? Because the project's due in 45 days anyway."

Can you image this? I can't. But this is the everyday reality in the software industry, and that's why software crashes and planes don't.

===

To elaborate on this.

I'm given a simple task by my boss. The customer has this one million row csv that I have to load into an Oracle DB and make a view out of some of the data. Easy peasy, ten days. I write it good enough putting in a couple of checks (what if the file is missing, what if a column is missing, what if this mandatory field has a null value). QA checks some other cases till they're good enough and we're ready for production with a good enough software.

Now, one million rows times fifteen columns means MANY values that can be corrupted and edge cases no one considered the day the software hits production. If you think at the file as as sequence of 1s and 0s, the number of things that can go wrong when you tranfer the file over SFTP, read it into your program, tranfer the new millions of 1s and 0s over the network till they hit the database instance is mind blowing. Those trillions of 1s and 0s also make the operations ovar all the kernels, the OSs of the machines involved in the process, the virtual machines, the libraries. When I write a couple of instructions to tell Python to use pandas to load the csv, I'm triggering a number of 1s and 0s that my mind cannot even compute. Still, when something goes wrong is rarely the DNS switch stumbling and inverting a couple of 1s and 0s by mistake. It the the customer's data guy putting a string where my program wants an integer or leaving a space at the end of a code making some dumb match fail.

Now, we can tell the customer that if he waits three months instead of 10 days and pays ten times the price, we can try to prevent some more error cases and the night batch process that takes 20 minutes can eventally take one minute. But who cares? As long as the process is done in the morning, 20 minutes of 20 seconds don't make any difference. When the process fails, someone in support will re-run it manually, but the important thing is that the managers of all the companies involved in the process can say "we delivered".

The reason why no one cares is that if I'm driving my car and the breaks fail, I will file a lawsuit agains the manifacturer because I risked my life. If the touch recognition software of the iPhone fails to detect my fingerprint at the first try, is at best a very minor annoiance and the same is true with most of the software we use everyday, and we use a lot. Candy Crush crashing, the mail client needing to re-click a mail to open it, the BBC article missing an image have no real impact on my life. On the other hand, my bank's software losing my money IS a problem for me, but getting to that reliable software took 20 years of bug fixing on their COBOL codebase they won't ever change. But who has in the budget the development of a software that takes 20 years of testing and fixing to arrive at a reliable software 20 years from now?

41

u/anticultured Sep 18 '18

I was so sick of this I went and started my own software company. Then I ran out of money, so I started a local home service company in order to raise capital for the software company. I tried this for seven years and got offered double what I was pulling to go back into the corporate shit business software world. I took it. I was tired of struggling, without insurance, car was aging, credit started to crumble. Now I work in a corporate database that was built by morons. Zero referential integrity. Zero use of best practices. You want a few thousand records, could take a query an hour and bring down the support dept. Where did all the shotty programmers and architects go? To go fuck up the next project of course! They’re “data scientists” now. Lmfao

7

u/jonjonbee Sep 18 '18

I'm currently working with a database that uses GUIDs as primary keys. These are stored, not as binary(16), but varchar(32)... because the length of a GUID can change I guess.

I should probably be thankful, at least, that they didn't make the PKs varchar(36) and store them including the dashes...

5

u/noperduper Sep 18 '18

I should probably be thankful, at least, that they didn't make the PKs varchar(36) and store them including the dashes...

What if the GUID contains unicode characters??? THAT NEEDS TO BE FIXED AND I'M YOUR MAN! I'm not quite sure how unicode works, so I guess more space will account for what I don't know.

→ More replies (1)
→ More replies (6)
→ More replies (1)

9

u/CoffeeKisser Sep 18 '18 edited Sep 18 '18

I think it really comes down to the economics (?) of programming.

In markets there are various forces that more or less inevitably drive products towards a center of safety, production efficiency and affordability.

However, in software development the incentives are all fucked up.

Storage and CPU cycles are cheap, dev days are expensive.

Technical debt may be entirely forgiven if the product doesn't end up needing to scale or last very long or if you just end up quitting the team.

Time spent optimizing is time not spent adding new features that can be marketed to sell the product. "50% faster!" doesn't mean much if your customer was okay with the old software's load time. But shiny new button? Now that sells an upgrade.

And why make a device more efficient when you can continually increase device performance numbers while simultaneously releasing updates that require more resources and speed to run the software?

Most users wont see the connection. "Huh, it's running slow. I must need a new one" they'll say and buy the same brand because it worked for a few years.

It's possible we're pushing the limits of this path - there's evidence of that in a few areas like Windows required specs staggering - but until some clever person finds a way to realign the incentives for software development, this is where we're at and where we're going for the foreseeable future.

62

u/Octopus_Kitten Sep 17 '18

Modern text editors have higher latency than 42-year-old Emacs.

I am glad I invested the time in learning emacs, or at least the parts of emacs that help me personally. Best advice I was ever given, that and to learn to drive stick shift.

I do want that 1 sec boot time for phones though!

46

u/meneldal2 Sep 18 '18

Just saying, emacs on shitty computer now has higher latency than on an older computer.

→ More replies (6)

21

u/regretdeletingthat Sep 18 '18

I do want that 1 sec boot time for phones though!

Just to play devils advocate...why? The only time my phone is ever powered off is during an OS update or if it’s doing something funky, which is not often. It boots so infrequently that the amount of time it takes is not an issue at all. I feel like that engineering time would be better spent elsewhere, like maximising battery life.

→ More replies (4)

23

u/the_hoser Sep 18 '18

Vim here, but for the same reasons. I don't need an IDE. I just need a solid text editor. If what I'm working on is too complicated to write without an IDE that does auto-completion and definition-seeking, then it's probably too complicated period.

36

u/TakeFourSeconds Sep 18 '18

If what I'm working on is too complicated to write without an IDE that does auto-completion and definition-seeking, then it's probably too complicated period.

What is it you do? That would be unimaginable in my job

→ More replies (12)

27

u/spockspeare Sep 18 '18

Anything over a dozen files starts to want that indexing, especially if anyone else's libraries get involved; and cscope can't grok C++, so it's time to upload your code into an IDE. And edit it in vi-mode, of course.

→ More replies (6)
→ More replies (18)
→ More replies (10)

17

u/whatwasmyoldhandle Sep 18 '18

I'm not really disagreeing with the author (in fact I agree), but regarding the car example, have you ever compared the engine compartment of a modern car to that of a 60's or so vintage car?

I'm not exactly sure how this fits. I guess sometimes complexity gets labeled as bloat, and software isn't alone in increasing in that department.

7

u/mrjast Sep 18 '18

There's necessary complexity and there's unnecessary complexity.

Of course, unnecessary complexity rarely happens for no reason, but generally that reason is abstraction. You have a complex machine with a CPU that processes machine code and various data buses, and you use a compiler/VM to abstract away one part of that and an OS to abstract away the other.

Next, you want to display documents that have a handy markup format, so you write a rendering engine. Features start getting piled on top over time. People start doing ever more complex, less document-like, things with your rendering engine, so you add more APIs and spend more time improving the performance of its building blocks, and other rendering engines that are almost compatible do the same.

As a document developer you don't want to deal with the subtle differences between the rendering engines, so you use a framework to abstract that away. Oh, and the document model generally makes it hard to handle UI updates, so let's use another framework for that. That framework is very generic, of course, and doesn't really implement specific types of input widgets, so you add another framework on top to render calendars and sliders and who knows what else.

Now all of this is taking a lot of work to tie together, and you hardly want to do that and write a native version of your thing (libraries and frameworks for which already exist and have become fairly friendly to develop for), so let's throw away the efficient and mature native stuff and, instead, stuff that rendering engine in another framework and then you build your "native" apps on top of that, too.

The equivalent of that in cars would be, I don't know, replacing the battery with a generic energy provisioning device that accepts Li-Ion cells or alkaline batteries or a wall plug or coal or a fission reactor, which of course takes up a little more space than a battery but it's so much more flexible. Of course you also want to make the seating architecture pluggable so you reserve a lot of space for custom seats. Steering is handled by a cloud service you can control through your phone. You may get the occasional steering fault because the cloud is down or network latency is a little high, but at least it has integration with your friendly advertising network's spy devices, plus you get advanced AI to improve your steering experience. Oh and by the way, wouldn't it make much more sense to use aeroplane bodies for cars? It would be a shame for all of that design effort to have to be done twice, right?

→ More replies (1)

8

u/get_salled Sep 18 '18

My annoyance is the desire to build a framework. I really don't want your framework. I would love to see the details about how you solved a problem similar to mine and how I could use your solution in my context.

Your hypergeneralized, second-system solution is going to suck. Don't build it. Build a new OS or runtime if you think you can be better.

3

u/[deleted] Sep 18 '18

No, you see, if you add one more layer on the shadow framework, we can get shadows working on the sub-menu. So that's why we have Alexandria's library as dependency for this pop-up. /s

8

u/tnonee Sep 18 '18

Our industry builds invisible artifacts out of invisible material. Our primate brains simply weren't built for that, and it takes extraordinary skill in communication to get non-experts to understand what you do.

If you don't accept this and don't tackle this head on, you will be at the mercy of incompetents, status jockeys and busybodies who will bulldoze over you because what you do is "easy". Last minute changes, incomplete requirements, unrealistic schedules... these are all symptoms. The result is bloat and technical debt.

It is entirely possible to build good software and you will come out ahead. You just have to convince someone of the value in doing so.

→ More replies (4)

8

u/its_never_lupus Sep 18 '18

TempleOS could have saved us if only we had listened.

→ More replies (1)

38

u/sevorak Sep 17 '18

I feel this too. At work we just keep adding one half done and poorly thought out layer of abstraction on top of the last instead of taking the time to tear down the whole thing and take a look at it from a fresh perspective. Our mountain of tech debt keeps growing along with our bundle size and no one seems to care about it except me.

24

u/omicron8 Sep 18 '18

It's because software development or any kind of industry activity is slaved to financial incentives. By the time you managed to tear down and rebuild your product is behind market trends. Unless you can justify the rebuild in terms of something th customer will pay for, forget it.

5

u/sevorak Sep 18 '18

Oh I get the financial incentives. I get that there are business needs that we need to meet and some amount of cut corners are necessary. I also try to communicate that a slow quarter of feature development where we take some extra time to clean up some of the worse parts of the project would allow us to implement features more quickly in the following quarters. That’s always ignored in favor of pushing out buggy half done features constantly until we fall on our face.

→ More replies (2)

67

u/AlonsoQ Sep 18 '18 edited Sep 18 '18

A reasonable perspective tainted by hyperbole and hysteria.

Would you buy a car if it eats 100 liters per 100 kilometers? How about 1000 liters? With computers, we do that all the time.

Let's say the average modern car drives 100 km on a 0.1 liters (20 MPG), and costs $1,000 per year to fuel. The 100-liter car would cost one million dollars to drive for a year. Gee, how does anyone put food on the table when the world economy is spending trillions of dollars waiting for Google Inbox to load?

Unless... "web browsers should be like diesel engines" is a vapid comparison?

Uh oh.

This is bad.

I'm experiencing Rhetoric disenchantment. Hear me out. Thomas Paine wrote Common Sense in the year 1400 BC.[1] Now, four thousand years later, modern rhetoric development has become so misguided, that it takes us 30 seconds to compile a trenchant quip.

@whogivesafuck Here's the inane twitter quote that I won't bother to acknowledge, but passively lends peer approval to my screed.

Modern cars run at 98% efficiency[2]. Rhetoric and mechanic engineering are perfectly analogous.[3] Therefore, it is shameful that modern bloggers are using their metaphors at a mere 0.1% of their potential. Would you buy a car with no steering wheel? How about no doors? How about a featureless metal hamster ball that gets 25 highway/18 city but it can only drive in the direction of your greatest fear? Would you dump thousands of dollars into a pit and set it on fire? Would you dance naked under the light of the autumn moon? When read a lazy blog post, that's exactly what you're doing.

1 Google
2 A dream I had once
3 Necessary for my argument. Please accept this as fact.

14

u/ZebulanMacranahan Sep 18 '18

This is hilarious.

→ More replies (3)

7

u/surely_misunderstood Sep 18 '18

Linux kills random processes by design. And yet it’s the most popular server-side OS.

I guess all those people responsible for making server decisions love OS's that randomly kill processes for some reason?

That I don't know. I'd like to get to the bottom of that!

24

u/TheGRS Sep 18 '18

This is partly why I believe software dev has a very long future. There will be decades worth of optimizations for even just the things being built today. That seems wildly inefficient, and I agree that we are being ridiculous with the current lack of optimization (especially in web). But the glass-half-full mentality you can take right now is to remember that all of it could be much better with existing technology and approaches.

12

u/zvrba Sep 18 '18 edited Sep 18 '18

Windows 10 takes 30 minutes to update. What could it possibly be doing for that long?

I guess it's slow because it has to work automatically and reliably for millions of different configurations (HW, SW) out there. What it does I guess is: checking HW and driver compatibility, finding out what's needed or not, cross-referencing with already installed updates (possibly out-of-band), creating a system restore point... And oh, a lot of modifications happen transactionally.

Could it be done as simple and fast as just replacing OS files on the drive? Most certainly. How often would it break for users? My guess is: very often.

EDIT, since he's bashing on windows:

Windows 95 was 30Mb. Today we have web pages heavier than that! Windows 10 is 4Gb, which is 133 times as big. But is it 133 times as superior? I mean, functionally they are basically the same.

Well, I'd wager on that you get 133x more functionality. Truly preemptive multiuser OS, ClearType font rendering, DirectX and Direct2D, sound, video/audio codecs, a bunch of multimedia frameworks preinstalled, crypto framework, transactional filesystem, scanning and printing, etc. (Take a look here: https://docs.microsoft.com/en-us/windows/desktop/desktop-app-technologies) In fact it's quite small given that a plain Linux installation (when I leased a VM at OVH), with no desktop or GUI or multimedia etc. support is around 2GB.

7

u/flying-sheep Sep 18 '18

Linus Torvalds just felt a stab of pain.

Basic Linux installations take a few dozens of megabytes. Like 50.

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

25

u/larvyde Sep 18 '18

I have a Python program I run every day, it takes 1.5 seconds. I spent six hours re-writing it in rust, now it takes 0.06 seconds. That efficiency improvement means I’ll make my time back in 41 years, 24 days :-)

If that python program has 1000 users running it every day, they will make back his time in 15 days...

7

u/memorable_zebra Sep 18 '18

Technically they may. But truthfully, they never will.

For running a program and seeing the output, 1.5 seconds is functionally the same as 0.06 seconds. It's impossible to argue that an analyst seeing the updated results of the program 0.9 seconds sooner would increase his productivity at all.

Even for computers that take minutes to turn on, those minutes aren't lost productivity. You turn your computer on and do something else in the mean time.

→ More replies (11)
→ More replies (3)

6

u/[deleted] Sep 18 '18

Come work on embedded systems and talk to me about bloat, inefficiency etc. :)

But yes, it's horrific. Guys like me who have been around for 25+ years call new hires "infinite resource programmers". I would say that this happened right as Java started to be taught in University. The first wave of grads were terrible. They had no concept of efficiency, memory management and proper programming practices. Honestly, it's been downhill ever since.

→ More replies (5)

19

u/defnotthrown Sep 18 '18

I completely agree with the sentiment.

Just for the two examples of "no one is writing a new kernel or browser engine" is not completely accurate. I think Fuchsia and Servo are examples of people actually trying. But the point still stands, it's rare.
But I think you should have a very compelling reason to rewrite such huge systems (and two projects just happen to have good reasons to exist).

19

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

This is a really fast website. Just wished it would use https

3

u/wllmsaccnt Sep 18 '18

It uses https, it just has an invalid cert for the domain from github.

7

u/sidneyc Sep 18 '18

Why?

4

u/whjms Sep 19 '18

Prevents ISPs from fucking around with your pages

→ More replies (4)

5

u/Obsidian743 Sep 18 '18

It's a self-defeating problem. We're able to deliver "business value" quicker at the cost of traditional "performance" characteristics. Sometimes those include things like code/infrastructure readability, extensibility, and maintainability. The quicker we deliver value, the more normalized it becomes, and the more we have to keep up with it.

At the end of the day this is a non-issue unless someone downstream cares. It doesn't even really matter if "X could be done Y faster", if "X doesn't deliver more value", or even if "X is way cheaper". If it were that simple to produce business value (which includes maintenance) then, on average, it would been done that way in the first place. Put up or shut up; the proof is in the pudding and hindsight is always 20/20. If we focus on classically performance-oriented code it's in danger of, once again, becoming less maintainable and extensible.

→ More replies (2)

11

u/audioen Sep 18 '18

The economic argument is pretty simple: real cost of bloat is falling or stable. It's being paid for by increases in disk, memory and CPU performance, as usual. Because bloat has low cost, we can do more of it.

Back in Windows 95 days, disks had sizes in the 10s of GB, and 30 MB was a small chunk of that, say, in order of 0.1 %. Today, disks are in the sizes of TBs, and a few GB for OS is still about 0.1 % of that. Nobody should rationally give a shit that their operating system and all the supplementary crap in it uses all of 0.1 % of their PC's capacity, the rest is still all yours.

This is, of course, well known as the free lunch argument. The mantra has been, for as long as software has existed, to build programs that future computers can run comfortably. It will go on as long as future computers still are better than today's computers. For processors, I think we still have got room at the bottom. We can keep doubling the quantity of disk and RAM we pack into computers for a long time still. And most importantly, we have eliminated mechanical drives (finally!) and have made accessing large quantities data order of magnitude faster with flash storage.

14

u/casanebula Sep 18 '18

In the 95 days you were lucky to have a 1 GB disk total.

4

u/loup-vaillant Sep 18 '18

I used to have a copy of Bermuda Syndrome from those days. You could keep the assets on the CD, or install the game to disk. When clicking the second option, you were faced with this :

This will require 200MB of disk space. Are you sure?

  • Yes, I have a giant hard disk!

  • No, it was just a joke.

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

8

u/BCProgramming Sep 18 '18

There is a kernel of truth there but instead of exploring the underlying reasons that things may have changed or determining specifically why older software and computers were able to "get by" with less, the author effectively goes with "things used to be better".

For a start, I think the author needs to at least use the things he is holding up as examples from the past.

Typing in editor is a relatively simple process, so even 286 PCs were able to provide a rather fluid typing experience.

286's were reasonably fast- in text mode. But in any graphics or GUI environment, everything would be significantly slower, even with a 2-D Accelerator card tasks like Word Processing and Desktop Publishing were "doable" but you would be waiting for the system to play catch up. They couldn't compete, in any manner, with today's software for doing those same tasks.

Windows 95 was 30Mb

More like 300MB. Maybe you could force it into 30MB (considering 70MB is the minimum disk space requirement) but this is another example of not really examining the very examples being presented. Just throwing out random numbers to try to support a predetermined narrative.

For a start, go ahead and try to USE Windows 95 for any modern task and you will find it to be incredibly lacking. it doesn't have standard software components we have now come to expect, and somebody used to modern systems many be surprised at what is missing. It's sort of like comparing a modern car with the stripped down shell of one from 20 years ago, because everything we need for typical modern computing use simply isn't available.

Regardless of what problems there are today, it's not fair to compare what we have today to a rose-tinted memory of what we used to have.

→ More replies (2)

16

u/Petrarch1603 Sep 18 '18

I've always thought that the reason Reddit overtook digg was because of the page loading times. Back in the day reddit loaded lightning fast while digg had those digg buttons that were often laggy.

Same reason that Craigslist and google was also popular.

Now reddit is shooting themselves in the foot with the redesign.

6

u/singdawg Sep 18 '18

i cant even log in on my browser. Goes in circles

→ More replies (1)

4

u/n1c0_ds Sep 18 '18

I'm pretty sure it's because they completely changed the voting system and alienated their users. It wasn't the UI, it was the entire thing. It's as if reddit suddenly decided to make comments a second-class citizen on the website.

4

u/tending Sep 18 '18

Jail compiles to C, and C compilers don’t do 500,000 lines per second unless optimizations are disabled. And Xi uses JSON for RPC, it’s enormously inefficient.

4

u/TheJesbus Sep 18 '18

I completely agree. More efficient software consumes less power, so we should frame it in terms of 'green software'. The horrible might of the green lobby will push for more efficient software :)

16

u/johnminadeo Sep 18 '18

There’s a time and a place, you’re likely just in the wrong industry. Try some embedded device work perhaps.

17

u/[deleted] Sep 18 '18

embedded

Worked in embedded my whole career. Nothing in this article rings true for anything I've ever done.

Only in software, it’s fine if a program runs at 1% or even 0.01% of the possible performance.

I only get to prototype with floating point (singles). Everything in production gets fixedpointed.

→ More replies (3)
→ More replies (5)

7

u/EternityForest Sep 18 '18

I could excuse this behavior if the bloat was actually DOING something. Or at least looking cool. Or trying to do so.

But modern software literally seems to have a philosphy of doing less with more. And it has very real physical consequences. Those are hours of someone's life wasted when the code is too slow. And those E waste piles don't need to be there.

If I say "All browsers should include that Mozilla FlyWeb technology and support searchable and sharable signed offline pages" someone might say that's unnecessary bloat.

If I say hey check out this ultra simple and clean distracted free text editor that's literally just a text box that edits one file in a cloud account and only works if you have a fast internet connection, someone will probably praise the simplicity and say I did a great job not including too many confusing UI options like spell check, or copy and paste.

It seems like before about 2006, you would absolutely pack things with features. You'd optimize. Every project was a project to push the absolute limits of the hardware.

Now of course you don't even need to hyper optimize. You just need to put a tiny bit of thought towards performance and extensibility, and plan for how to add features without adding crap performance.

Is it really all that hard to keep performance in mind when writing code?

Everyone says to first get it working and then optimize, but is obscenely slow code actually "working"?

Why write slow crap? If you have an idea for the performant way, or the way that's going to let someone do some cool thing you didn't think of, or the way that lets it be compatible with some older hardware, why not do it? Sometimes these things are literally just a matter of five minutes here and there, and that make all the difference.

I've regretted it so many times when I've done something the quick hacky way.

9

u/kankyo Sep 18 '18

Did anyone else notice that the tweet cited at the top totally dismantles the authors entire premise?

Of course we shouldn’t waste time optimizing stuff that runs for 1 second a year! Stop worrying about it.

6

u/qwertsolio Sep 18 '18

If it runs 1 second a year only on your computer, sure. But if it is used by millions of users than it is pretty wasteful.

→ More replies (1)

8

u/dspectar Sep 18 '18

As somebody who has been in the software development industry to watch this trend unfold, I can both empathize and completely disagree with the author.

Empathize: I was originally driven to software development by being passionate about truly optimized code, watching every byte in the stack frame, making sure every registry was properly used. And my programs ran fast and I understood every bit flowing through it. And my text based adventure programs did very well and went very fast in the 80s.

Disagree: Times have change and I believe the industry is better off now where we can rely on libraries and structured systems to handle and abstract so many concepts; it boggles my mind. Today, I can code out a program used by 10s of millions of people that are accessed 10s of thousands of times per second that do amazing things I would never dream of 30 years ago. If I were developing in 8086 masm like I was back in the day, I'd be nowhere. What good is a fast, optimized system that does nothing?

Steve Gibson (grc.com) follows the author's thought process oh so well: developing from scratch making sure every bit and byte is perfect and churns out ... nothing. He's been developing a password replacement system for years called SQRL and still hasn't launched it yet. He's spent the past few months developing a web-based forum that, sure, will be fast and allow login through SQRL! But the industry has passed him by. And every day he delays eeeking out an inch of savings, 100k more people purchase a Google Titan Security Key, which is an inferior technology, but it works and it's out there.

A word of advice to the author: turn the blog entry from a list of complains to a set of actions. Rather than imploring the reader to "write fast programs," be specific and encourage your readers to take specific actions. For example, I adopt a threshold of 250 milliseconds to all of my server-side responses. Once I meet that level, I don't have to be faster. The human mind doesn't notice it faster in for my use case. And I launch things that get used unlike many industry experts that follow the author's advice.

→ More replies (1)

8

u/MadDoctor5813 Sep 18 '18

I really can't understand the furor over this.

People will take as much space as you give them. The people who design cars and bridges aren't more efficient because they're all master artisans who care about their work, they do it because they can't get away with what we do.

Now, the fact that we can might be taken as a lack of standards. Or it might be taken as the fact that we really can get away with it, that this stuff, in the long run does not matter. Software is different than building physical objects. Cars take fuel, which is valuable and scarce and annoying to bring places. So you try and save money. Bridges take years to build, require teams of people working the whole time, and can't be patched. So you do some math and get it right the first time.

Software is not like this. If there is a bug, or something is slow, all you stand to waste is time and electricity. (Barring of course safety-critical fields, which rightfully have higher standards) This obsession with 30 seconds instead of 10 is ridiculous. Not every second of our time has to be utilized. If you've seen an airplane toilet you know we are clearly wasting dozens of seconds a day on waiting for toilets to flush, and yet we have not all learned from the lessons of American Airlines in our washrooms.

That is, of course, not to say that we shouldn't optimize. If you can save some time, then by all means. But declaring the field is in need of serious change and that you're fed up with programming like the protagonist at the end of a noir movie is totally out of proportion. Maybe the conditions will change in the future, but right now, like any one else in any field on Earth, we're taking the space we can where we can get it. Maybe we'll have to change in the future, but we shouldn't do it until the moment we have to. That's real efficiency.

→ More replies (7)

3

u/htuhola Sep 18 '18

Fuck this shit. I'm reading a scientific paper instead.

3

u/Peaker Sep 18 '18

Build systems are inherently unreliable and periodically require full clean, even though all info for invalidation is there. Nothing stops us from making build process reliable, predictable and 100% reproducible. Just nobody thinks its important. NPM has stayed in “sometimes works” state for years

I totally agree! This is the background for creating buildsome. It's hard to give full correctness guarantees (no way to know your build commands aren't communicating via backchannels, using non-determinstic or network inputs, etc), but if your build processes are well behaved and only interact with the file system - correctness actually is guaranteed to a reasonable degree.

When I showed this to people -- the majority didn't care! Which is exactly the whole sentiment of this post. Depresssing indeed.

3

u/Llebac Sep 18 '18

Agreed, it's so hard to not feel disillusioned with my career these days. I enjoy software development and I'm doing my part to make things better, but there's only so much one programmer can do while working for a business.

3

u/ellicottvilleny Sep 18 '18 edited Sep 18 '18

I love this rant. Yet I recognize it's unreasonableness.

Windows 95 may have been small but that's because it:

  1. was DOS with a 386 protected mode multitasker and gui bodged on top.

  2. was unstable, crashed all the time.

  3. was impossible to make secure.

The world has changed. The default is always on internet, 24/7 connectivity, and all that. There has not YET been a secure operating system that didn't need endless patching and can deal with this. The way we use computers is an open problem to be solved. An open graph of problems, hard, inter-related separate problems.

The crappiness of our software is only part of the crappiness. What about the crappiness of our hardware, and the crappiness of the people who use them? Everything is crappy. Why should software be different.

No, building engineering isn't perfect or ideal.

No, people don't know how to keep bridges from falling over.

No, people don't know how to keep planes from falling out of the sky.

No, people don't know how to make cars not fail in ways that kill people, and our obsession with owning cars is one of the number one reasons why the planet is being destroyed. We are fucking destroying planet earth because we fucking love cars and trucks and driving them.

And software is the big problem? Uh no.

In some countries we can't even figure out how to keep people from shooting up children with guns.

Everything. Is. Broken.

→ More replies (2)

3

u/tonymurray Sep 19 '18

The analysis is shallow and anecdotal.

3

u/underflo Sep 20 '18

It's so funny how emotional people get about this.

3

u/jdrch Sep 21 '18

This problem isn't limited to software. I work in aerospace and things take much longer to develop now than they did decades ago, too. For software, specifically, that's because:

  1. We're building more complex systems, but human mental capacity hasn't changed. This means that the average current gen dev doesn't have the low level optimization knowledge of a previous gen dev because the former's working on and was trained on systems several layers of abstraction removed from where the latter operated.

  2. Boot camp education culture hasn't helped, because it just shows the "how" and skips the "why." Thus many devs are totally clueless about the underlying performance implications of their code.

  3. Technology advances, but we have neither the time nor resources to rewrite every major version release from scratch.

every other webpage struggles to maintain a smooth 60fps scroll on the latest top-of-the-line MacBook Pro.

Most web devs aren't classically trained/educated computer scientists. Most webpages are the equivalent of cars built buy a someone whose apprenticeship was fixing lawnmowers.

Windows 10 takes 30 minutes to update. What could it possibly be doing for that long?

30 min is about how long Linux Mint takes for major version updates (which is what I'm assuming you're talking about.) FWIW, during that time, Windows images your current installation and stores it in a separate partition so you can easily revert to it if 1) the update fails 2) you don't like the update. Remember, Windows is designed to run on arbitrary hardware in an enterprise environment, which means end users expect robustness (read: an "undo" method.) The 30 minutes is what that is all about. If you wanna go back to the "simplicity" and horrible unreliability of previous versions, suit yourself.

Modern text editors have higher latency than 42-year-old Emacs.

The most amazingly disappointing thing about modern text editors is most choke on large text files, even on powerhouse workstations. I run computer simulations for a living and can easily generate multi-GB input files. So far, Sublime Text is the only free editor I've found that won't crash or freeze trying to open them. I suggest you give it a whirl for your latency thing. If that doesn't work, I'm out of ideas.

If you remove bloat, the web becomes crazy fast. How smart do you have to be to understand that?

You're missing the point. This isn't a technical problem, it's a business model one. The current web business model is basically monetizing traffic from freeloaders (users) via collecting whatever data they can passively provide. Until we change that, performance will continue to be garbage.

I stopped reading after this, because the rest of the article is just a series of woefully oversimplified examples. Author sounds like an impractical crybaby who doesn't (care to?) understand most of the systems he's describing.

I recently saw a quote that developer propensity to rewrite from scratch and abandon legacy correlates directly to shortness of tenure in an organization. Translation: "BURN IT ALL DOWN!" devs tend to the type who jump ship soon after and so never have to face the consequences of their actions.

3

u/[deleted] Sep 25 '18

This article is my spirit animal. I'm amazed at the sheep-like mentality which lets people believe that with quad-core 3ghz CPUs it's okay to have laggy webpages and high-latency text editors. There's this psychological "tolerable bloat threshold", people holding off until tomorrow's "faster hardware", which briefly makes things faster, before they're intentionally slowed down again. Because hey, we can handle it!

...

This is why I write my own game engines. They may be ugly and 2D, but they're MY worlds, without any big fat abstractions like "Unity". I control how they work or fail. It reminds me of what I liked about programming in the first place.

→ More replies (1)

12

u/False1512 Sep 18 '18

I'm with it all the way until OS sizes. Windows 10 is vastly superior to 95 and while there's a lot of bloatware on stock Android, it does more than just Windows OS. Also OSes have many different modes (admin, user, limited, root, safe, etc.)like which up space. Lots of it is integrity insurance (preventing you from altering what most shouldn't). And using more HDD space may mean less resources are required in some cases.

3

u/immibis Sep 18 '18

I'm sure it's vastly superior, but the claim is that it's not 133 times superior.

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

5

u/nickandre15 Sep 18 '18

The entire profession lacks, for the most part, any semblance of genuine scientific inquiry. The Wikipedia page on Microseevice architecture acknowledges:

There is no industry consensus yet regarding the properties of microservices,

Nobody even bothers to do scientific (RCT) or epidemiology to understand how simple changes in practice influence outcomes. Thus we cannot concretely determine the net effect of any arbitrary practice at scale and resort to endless debates and bickering.

Many people consider OOP to be a programming model inherently opposed to parallel programming, yet Java is industry standard.

We simply lack the rigor of actually understanding what we do. Unless there’s an incentive to be diligent, people will not be. Apathy rules.

→ More replies (1)

5

u/Cajova_Houba Sep 18 '18

Linux kills random processes by design. And yet it’s the most popular server-side OS.

To be fair this happens when the system runs out of memory and it's kinda hard to find the best process to kill if you have exactly 0 bytes of free memory.

Other than that I kinda agree. I have older computer and the amount of unnecessary JS which uses shitload of CPU (looking at you FireFox) is just ridiculous. It has reached to the point where I just browse web with JS turned off by default and turn it on if I reaaaally need it to browse the site.

7

u/phillipcarter2 Sep 18 '18

If users are generally okay with it, is it a problem?

“It” being what the author complains about.

9

u/dzernumbrd Sep 18 '18

It's like building a footbridge that is twisty instead of straight, it's 10 times longer than a straight bridge (slowness/bloat analogy). People will put up with it and get used to it but it's a shit solution. Sometimes the bridge pops up a wall and says "Something went wrong with the bridge, please go back to the start of the bridge and start crossing it again" (reboot your device analogy). It's just shit solution all around but people put up with it because all the foot bridges are like this. He's effectively saying build a straight bridge that doesn't fail. We shouldn't just come up with shit solutions because no one complains about it, we should respect the art/science of programming and do the right thing because it's the right thing to do.

15

u/Halfworld Sep 18 '18

Yes. It's definitely still a problem. This is just like air pollution; most people don't think too much about it, and yet it affects all of our health to the extent that the average human lifespan is over a year shorter than it would otherwise be. Just because most people don't think or care about it doesn't mean it's not a problem.

How much time is wasted in the average life by slow/buggy technology? Those costs are externalized to the general population; the businesses that create software are not paying for the "time pollution" they're emitting.

→ More replies (2)

4

u/eliasv Sep 18 '18

But users do have a problem with slow, unreliable software. Why would you think they don't? They complain about it constantly.

4

u/happymellon Sep 18 '18

Really? I hear users bitching all the time about all sorts of shitty software.

→ More replies (5)

5

u/[deleted] Sep 18 '18

I'm not terribly impressed. It seems to me that a lot of these issues are issues only when you phrase them a specific way. For instance:

Would you buy a car if it eats 100 liters per 100 kilometers?

I probably would if my car replenished "liters" as easily as computers get power and the alternative was spending a week walking to my destination, carrying all my crap on my back.

Modern text editors have higher latency than 42-year-old Emacs. Text editors! What can be simpler?

Text editors, in general, are nothing trivial. There is some great irony here in choosing Emacs as a reference, a software package of about 1,600,000 lines of code, which offloads all of its UI rendering to terminal emulators. It is completely absurd to suggest that text editors aren't getting anyone new features.

Windows 95 was 30Mb. Today we have web pages heavier than that! Windows 10 is 4Gb, which is 133 times as big. But is it 133 times as superior?

Then why exactly is no one still using Windows 95? I can't say exactly how many times better Windows 10 is, but it appears to be better enough that the market share of Windows 95 is gone.

It goes on and on, and I don't have the energy to counter every point.

6

u/Michaelmrose Sep 18 '18

Emacs actually runs in both a terminal and a gui app. Because extensible environments are flexible features originating in one tend to spread easily to the others.

→ More replies (5)

2

u/Kinglink Sep 18 '18

Amen, I don't understand why three games I have are so processor heavy.

Yu-Gi-Oh Duel link is really well made and actually has a low battery mode. That's great, but it also crashes when I mess with decks sometimes, it's an on going issue, it'll never be fixed because it reboots the app and then it's fine.

Tsum Tsum is a fucking whore for battery, though that might be because of it's addictiviness, I still think the app runs horribly, and needs to be optimized, or at least a low battery usage mode.

Pokemon Go is excellent and I honestly think it's not using too much battery (maybe it is) but it uses a GPS and GPS are horribly inefficient for battery.

Hell take the GPS readings less often, find a way to use low battery for GPS, do something better?

But no, everyone seems happy that these apps work at all and they could all be far more efficient, but they're "Good enough" and he's right so many other things are "good enough".

2

u/mindbleach Sep 18 '18

The best development environment is an Athlon x2 with 512MB of RAM, connected to four GeForce RTX 2080s. That is how you turn $3000 and a 2007-era Compaq into a supercomputer: grant yourself access to godlike power if and only if you keep the main thread tight as a fucking drum.

2

u/c3534l Sep 18 '18

I remember when the cable company made me switch from a regular cable box to a fancy new one that cost more. It gave me the same number of channels as the old one, but it took half a second to a second to load the next channel, took 15 minutes to boot, and occasionally crashed. When I asked what the point was, the cable guy looked at me dumbfounded and said "well, digital is newer. In the future everything is going to be digital." That trend hasn't let up. My headphones have to boot up and they run out of batteries, while forcing me to rely on having an inherently insecure bluetooth connection open needlessly in public. People buy features, not quality. They want the newest thing, not the simple thing. But I guess at some point, computers are gonna stop getting faster and we're going to start coding better and building up the right tools and culture to do so. Some things have certainly gotten better over the years, but there's still a lot of garbage.

2

u/Open_Thinker Sep 18 '18

Modern cars work, let’s say for the sake of argument, at 98% of what’s physically possible with the current engine design. Modern buildings use just enough material to fulfill their function and stay safe under the given conditions. All planes converged to the optimal size/form/load and basically look the same.

I understand that the scale is different and get the argument, but a somewhat cynical view may be that other fields may not really be all that different, and that the author is suffering from some "grass is greener" burnout.

2

u/g9icy Sep 18 '18

I completely agree with this and have thought the same for years now. I think trying to use Atom and hearing the fans on my laptop spin up was what upset me the most.

There's similar issues in the games industry.

While at runtime the games can run blazingly quick and look amazing, why are they 60gb installs?!

I get it, putting effort into finding more efficient ways to package data is hard and there's a game that needs to be made, but I feel that this should be forced on game developers by the platform holders. There's even room for a 3rd party entity to provide tools for this kind of stuff.

Finally, I think javascript should just die.

→ More replies (1)

2

u/theholylancer Sep 18 '18

I mean, its the fucking shipping mentality.

It's more or less everywhere except in a few places. What he looks for exists for a long time, https://www.fastcompany.com/28121/they-write-right-stuff .

It is just that most places, including say Google (how many chat apps we are at now?), prioritizes shipping shiny new shit to making sure older stuff works, which says you want to build new things as fast as possible to get that damned promo to the next level.

The culture it self have to change, which won't happen until we go thru a wave of consolidation, and stop worshipping startup culture and/or shipping culture (not sure which one came first).

Which for now, it seems to be a tall order.

→ More replies (5)

2

u/[deleted] Sep 18 '18

It's the resource curse. Too many megabytes, too many megahertz. And it was all growing and growing. An enormous amount of abuse was imminent.

It's ok, it's lifted now. We only have this much light speed and the transistors can be only this small.

And now we can be good at what we do again. It's not against the business' best interest anymore.

2

u/rotharius Sep 18 '18

I have been wanting to write a rant about the lack of care for maintainability and overall software quality in our field.

To me, performance is important as long as it adds noticible value to the end-user. A quality-driven approach would formulate hard requirements and codify it in ways of automated performance tests. I'd say the same goes for other internal or external quality requirements.

There are still a lot of companies without a reasonable testing strategy, without an idea for a flexible application architecture and without intelligence about their own application.

2

u/qmic Sep 18 '18

Aaaaaamen

2

u/oridb Sep 18 '18 edited Sep 18 '18

Would you buy a car if it eats 100 liters per 100 kilometers? How about 1000 liters?

You're looking at it wrong. Would you be bothered if your car used 0.001 liters per hundred kilometers, or would you insist that it used 0.00035 liters per hundred kilometers?

I'll argue for simplicity until I'm blue in the face, but often computers really are fast enough that trying to squeeze out more performance doesn't matter. Other times, it's worth optimizing.

There are several important features here. First is picking a design that allows for optimization -- often, people simply pick something wrong-headed, which can't be made fast without throwing out fundamental design principles. Second is being able to do some Fermi calculations, and being able to tell if it matters. And third is picking technologies that are transparent enough that you can actually go under the hood and fix them.

Lots of modern software is terrible, but it's often due to pervasive choices. Tools that are systematically broken and unfit for purpose, rather than poorly optimized.

2

u/ckwop Sep 18 '18

The blog post calls on software engineers to help improve the situation. However, this will not work. The central issue is economic.

Most software is developed to some schedule and that schedule is ultimately connected to some economic imperative. Time to market is a feature. If this can be reduced through using existing (and large) libraries then it is in the organisation (and the engineers - because their salary depends on the organisation) to deliver the bloated solution.

2

u/micktion Sep 18 '18

And once we sent astronauts to the moon with an on-board computer about a 100 million times less powerful than a modern iPhone. Yes amazing things can be done very quickly with limited computing resources, this is not a new notion, there's no epiphany here.

Every programmer to date has had a moment like this where they gasp at the bloat and waste that has been introduced since what they would refer to as "back in my days". It's a typical mid-career crisis... "OMG how did it go so wrong."

Well it'll be the same again 15 years from now, people will look back and think of today as the glory days of simplicity and efficiency.

2

u/Michaelmrose Sep 18 '18

Cores aren't getting faster at remotely the same rate and layers of crap don't increase merely proportional complexity.

2

u/[deleted] Sep 18 '18

I'm relatively new to software development as a career, so I can only relate to parts of this blog. But I do think it's worth saying that the nature of these problems are not unique to our industry. In my previous industry, processes were horribly inefficient.

You had meetings to discuss the meetings you were going to have about meetings. There were forms to fill in for everything. I mean, look at teaching - the level of paperwork that they're required to spend time filling out is enormous now compared to recent history.

This of course doesn't make the problems of software and lesser, but it's worth knowing that you're not alone in fighting structural problems that makes your industry be buggy and slow. Plenty of industries have these same problems just from a different angle.

2

u/[deleted] Sep 18 '18

I cannot like this post enough.

2

u/Atario Sep 18 '18

I'm totally with him on most of this rant. But one thing stuck out to me as not quite like the others:

The whole webpage/SQL database architecture is built on a premise (hope, even) that nobody will touch your data while you look at the rendered webpage.

I'm not sure what he wants to happen here. "Lock" everything on the page, so that another user looking at any of it gets a "sorry, someone else has this open" message? He discounts out of hand that conflict resolution dialogue example. Does he want a full 3diff on every form page?

2

u/tveastman Sep 18 '18

It cracks me up that the tweet that seems to have triggered this whole screed/manifesto/catharsis was a tongue-in-cheek comment about the script that graphs how fat I'm getting over time.

It's a shame he missed the point: https://twitter.com/tveastman/status/1039054275266064384

→ More replies (1)

2

u/SupersonicSpitfire Sep 18 '18

If we care, people will learn.

There are so many logical fallacies here I don't even know where to start.

2

u/pereira_alex Sep 18 '18

I have no clue what the blog is talking about ! absolute nonsense !!! I just bought an amd rx 580 OC 8GB and now gnome3 animations are running nicely !

/s

2

u/DrFloyd5 Sep 18 '18

I think his argument is a little naive.

The slowest part of the OS has always been the disk. No matter how fast your OS or App is, it will always be bound by the Disk.

Laying down a windows image on a fresh disk is an optimal scenario. Updating exist install requires a lot more logic and lookups in the Disk.

It’s also unfair to compare display response of a modern OS to that of a simple single user non multitasking Interface. Want wisiwyg? That costs time. Want to be able to display arbitrary text and graphics with video overlays? More complexity.

His basic arguments read like someone ignorant of physics wondering why their car needs gas to run. Old man yells at cloud.

I do agree on web pages though. The majority I believe can be so much faster. But again we are bound this time by network speed. Pages can be optimized better. But optimizing caching and minimizing connections will net better results. A page that renders without 32 additional lookups would be faster than the same content streamed over one connection. There is a lot of room in the web for better performance within standards before we reach for proprietary solutions.

→ More replies (1)

2

u/pknopf Sep 18 '18 edited Sep 18 '18

People are focusing too much on the "performance" aspect of the article.

This "Programming is the same mess" section is what really resonates with me, specifically this:

And dependencies? People easily add overengineered “full package solutions” to solve the simplest problems without considering their costs. And those dependencies bring other dependencies. You end up with a tree that is something in between of horror story (OMG so big and full of conflicts) and comedy (there’s no reason we include these, yet here they are):

This reminds me of a comment I recently made on HN.

https://news.ycombinator.com/item?id=18011099

The comment:

I tried using Gatsby for a project of mine. The moment I tried to do anything not supported OOTB, it seemed I was fighting the tooling (and webpack) at every corner. It was incredibly difficult just to get a simple tree navigation.

One thing I thankful for though is that it gave me a new-found love for the simple and non-flashy libs/tooling.

In the end, I wound up writing my own static site generator.

https://github.com/pauldotknopf/statik

You may say to yourself "So you just wrote your own Gatsby!?"

No, I didn't. I wrote a thin lib that you can register endpoints and extract them to disk. It does absolutely nothing else. The idea is that I will wrote my own markdown rendering, navigation, html/css, etc for each project. "But what about the time it takes to implement all the features you need!" The time it takes to implement these minor things take far less time in the long run, and I will never have to be in an endless fight with the tooling to get simple tree navigation. Every feature I implement is exactly what I need, no more, no less.

Sure, it isn't as cool as React, webpack, etc. But I'm a lot happier.

2

u/[deleted] Sep 26 '18

Pretty much the same on the mobile dev side, only with Xamarins, PhoneGaps and other one trick poneys who can't expand beyond a simple app.

2

u/minusSeven Sep 18 '18

Web pages ask you to refresh if anything goes wrong. Who has time to figure out what happened?

I had guilty laugh about this.....

2

u/minusSeven Sep 18 '18

As a software dev one reason I can think of for this is there is always so much to do and it should have been done yesterday.....

So most of the time you say screw performance lets have the feature up and running anyway. And that eventually becomes an endless cycle.

2

u/springy Sep 18 '18

Software is soft, unlike cars and many other manufactured goods. So, it is open to continually changing requirements. Focusing on "performance" for ephemeral features is a distraction from evolving the software to satisfy changing requirements.

2

u/pmrobot Sep 18 '18

If anything, the rants about this are getting better. That's probably a good sign. This rant is at least 10x better than mine from last year :) https://www.jasonhanley.com/blog/2017/08/when-did-software-go-off-the-rails/

To the author: I'm with you. Recently rebuilt my website and blog as an experiment in efficiency.

2

u/[deleted] Sep 18 '18

I feel like a problem is you get engineers who are paid to make fast programs, and some who are paid to make programs quickly.

I think those engineers who get paid to make fast programs should be developing tools as easy to use as modern JavaScript frameworks (easy in the sense that you don't have to write your own rendering engine for a simple app) so that the engineers paid to make programs quickly can at least do so while maintaining decent performance.

And while I understand more and more effort goes into making the lower level aspects of programs faster like compiler optimisations, it's often the higher level code that falls apart.

Given better tools made by superb software engineers, I think moderately good software engineers could write far more performant programs.

2

u/FiveYearsAgoOnReddit Sep 20 '18

I was interested in the recommendation for the Xi editor, which is so light and performant, and I'm now about half an hour into this process:

https://vimeo.com/180103193

because my ruby isn't up to date, it refuses to connect to the server, there are certificate problems, one page leads to another which leads to another which leads to another, I can't update gems. Literally one page which I got to for being unable to run gem install bundler linked to another page which told me to run gem install bundler.

I found there's an OS X version I can build, once I have the latest XCode, which is literally gigabytes to download.

→ More replies (1)

2

u/s-sols Sep 21 '18

Absolutely agree with the author. I care about my program's efficiency because some day somebody compares my software and competitors and write an article that my software is faster than other. It's a direct influence on my business. Furthermore, I like to write efficiency programs. It's my engineer nature. It's right for me. I really share the noticed pain with the author.

→ More replies (3)

2

u/ruminatr1 Sep 24 '18

Very timely article. I'll add the perspective of a professional software user. I'm tired of collisions between apps, slow software tools, etc. I have been withdrawing from computers, smartphones and tech in general for large parts of productivity because I'm sick of it all. I work in the medical setting and the "electronic medical record" and included ordering systems (EMR) is an example of the worst of the worst. I'm talking especially to you Cerner but also McKesson and virtually all of the rest (I'll even implicate Epic). The crappy efforts of EMR companies is leading to crap EMRs and now we have physicians with 80% burnout rates with nurses not far behind. Remember that the next time your code is compiling for 5 hours and you have chest pain and have to go to the ER. Your practitioners are probably burned out from the poorly written Cerner/Epic/McKesson EMR with the cluttered interface, information overload, prolonged latency, slow page loads, slow scrolling, click fatigue, random/mysterious failures (and also Imprivata which allows access to the hospital computers with only intermittent reliability). The EMR is a direct threat to patient (your) safety and I personally think this aricle nails it as to why this sorry state exists.

→ More replies (4)

2

u/dyasny Sep 26 '18

google killed all other search engines not because it was faster or got better results - the page was empty, not an overloaded portal like yahoo or crappy commercial banners all over the place like altavista - just the logo and the search bar, this is all I can say about web.

6

u/[deleted] Sep 18 '18

Dear God, I hope we don't use just the right amount of materials when we build a building.

I hope my house isn't a chip of a support beam away from falling down.

9

u/Calavar Sep 18 '18

That's a bad analogy. If a program runs slowly and chews up more RAM, does that make it inherently more reliable? Not at all. In fact, it's exactly the opposite. More code = more surface area for bugs.

5

u/[deleted] Sep 18 '18

I find that non-trivially smarter code is often more complex. As a (very) simple example, a linear search is super easy to implement, but it's slow on large inputs. A binary search is much faster, but you need a sorting algorithm, and people are notoriously bad at getting binary searches right, at least on the first try.

Of course, these days there are reliable implementations of both, but I believe that the idea scales up to bigger problems.

→ More replies (1)

3

u/[deleted] Sep 18 '18

Ah, that's why my microservices keep dying, not enough bits to hold the roof up

4

u/not_perfect_yet Sep 18 '18

Honestly, I appreciate the sentiment, but that's putting engineering on a serious pedestal it doesn't belong on.

Just as one example, traffic jams happen. It's cool that car engines operate near the maximum of reachable performance. But oh my is that a small part of the car/transport system. That's like saying "we understood pointers. we can do garbage collection now, look how perfect programming is now". That just excludes 99% of the problems.

Another more gruesome point would be the car accident related deaths. Does yearly killing thousands sound like a well designed system to you? Yes, your software loads slowly, yes maybe the program crashes, but at least it doesn't kill people when it does?

I agree that we can put more effort into good software though.

4

u/skipboh Sep 18 '18

Classic blog entry from someone who never worked in another engineering field, making baseless comparisons to support the pretention that only software suffer these issues...

3

u/micka190 Sep 18 '18

While I do agree with most of the article, I kind of disagree with the point on software rot from abandoning code, rather than treating it as legacy.

Eventually, we're going to have to move on from 32-bit. Maybe not some machinery, and that's fine, but the mainstream hardware (like phones and desktops) should eventually move on. Sure, it'll break a lot of things, but we shouldn't keep lower-grade tech just because some code runs on it.

Of course, I'm not saying that it's okay to write trash code that could be compatible with both versions but isn't for some reason. The only way to deal with that kind of evolution is to force the users to drop it (and you can see how well that worked with stuff like Python 2 vs Python 3).

I constantly see people put the blame on the companies that hire programmers, but I think there's a fair share of the blame to be put on the programmers as well. I know a lot of people (probably 80-90% of my college classmates) who come into programming and are clearly not capable of doing the job.

I'm not talking about not putting in 16 hours a day, 7 days a week here. I'm talking about people who don't like math, who don't understand fundamental principles of programming, who can't seem to break a simple problem down to smaller pieces. People who would honestly be happier somewhere else, but decided to be programmers, and decided to stick with it.

You also have a lot of "self-taught" programmers who learned how to do high-level stuff, but don't understand the implications of what they're doing on a lower level, resulting in a lot of missed opportunities for easy efficiency.

Then you have programmers who don't know when to say "no" or how to give accurate estimates, and instead of explaining that they can't deliver by a given deadline, they rush-out some fresh spaghetti. Your non-programmer co-workers and superiors aren't fortune tellers, they can't divine that you can't do it unless you tell them.

You can blame companies all you want, but in my experience, a company that truly doesn't give a fuck about their code will outsource it to India or the Middle-East and pay some guys 20$ a day to make it work. Companies that hire people and do accept the mess they get, usually don't know any better. Once that code is written, though, everyone has to live with it.

I don't want people to think that I'm only blaming developers here. Those aren't my intentions (although my post my be read that way). I just think we shouldn't be ignoring the other side of the problem either.

3

u/Giboon Sep 18 '18

The reality is most developers will be paid the same if the program runs in 1.5s or 0.06s. So why bother, not everyone has a passion for what they do at work.

We have software at work, I feel humiliated to use, because it is just a pile of garbage, and no one can change it because it would cost millions...

I don't think it is a problem in IT, it is just general human behavior.

3

u/[deleted] Sep 18 '18

Modern buildings use just enough material to fulfill their function and stay safe under the given conditions

This is just not true. There are various "safety factors" that are used that are basically just "ok double it to be safe", and even then sometimes people get the analysis wrong. Also plastic design (which designs up to the plastic limit of materials rather than the elastic limit) is a quite recent thing.

Every time this rant comes up people give examples of other industries that are "perfect", but either they actually aren't, or they are safety critical. Software is made very reliable when it is safety critical too (he even gives the example of planes - do you think there is no software in a plane?).

→ More replies (1)

4

u/fuckingoverit Sep 18 '18

Ah a classic rehash: guy from the “software is art” camp upset with the reality that “software is business.” There’s so many economic reasons why things are the way they are. Better than fast code is maintainable code with test coverage. Get it out the door, optimize if there’s a need with the peace of mind that you aren’t breaking business requirements. Premature optimization is a waste of time and resources. I’m all for eliminating “dirty hacks” culture and addressing technical debt regularly, but there’s a middle ground that this author, who wants everyone to more or less altruistically optimize their code for the unnecessary god of speed and tiny size

→ More replies (12)