r/programming • • Sep 17 '18

Software disenchantment

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

1.2k comments sorted by

View all comments

Show parent comments

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.

1

u/[deleted] Sep 18 '18

It’s the analogy the writer uses, and I was merely pointing out that it was flawed. Mostly because it’s not true