4

Killing ants with nuclear weapons

 3 years ago
source link: https://drewdevault.com/2017/09/08/Complicated.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Killing ants with nuclear weapons

Killing ants with nuclear weapons September 8, 2017 on Drew DeVault's blog

Complexity is quickly becoming an epidemic. In this developer’s opinion, complexity is the ultimate enemy - the final boss - of good software design. Complicated software generally has complicated bugs. Simple software generally has simple bugs. It’s as easy as that.

It’s for this reason that I strongly dislike many of the tools and architectures that have been proliferating over the past few years, particularly in web development. When I look at a tool like Gulp, I wonder if its success is largely attributable to people not bothering to learn how Makefiles work. Tools like Docker make me wonder if they’re an excuse to avoid learning how to do ops or how to use your distribution’s package manager. Chef makes me wonder if its users forgot that shell scripts can use SSH, too.

These tools offer a value add. But how does it compare to the cost of the additional complexity? In my opinion, in every case1 the value add is far outweighed by the massive complexity cost. This complexity cost shows itself when the system breaks (and it will - all systems break) and you have to dive into these overengineered tools. Don’t forget that dependencies are fallible, and never add a dependency you wouldn’t feel comfortable debugging. The time spent learning these complicated systems to fix the inevitable bugs is surely much less than the time spent learning the venerable tools that fill the same niche (or, in many cases, accepting that you don’t even need this particular shiny thing).

Reinventing the wheel is a favorite pastime of mine. There are many such wheels that I have reinvented or am currently reinventing. The problem isn’t in reinventing the wheel - it’s in doing so before you actually understand the wheel2. I wonder if many of these complicated tools are written by people who set out before they fully understood what they were replacing, and I’m certain that they’re mostly used by such people. I understand it may seem intimidating to learn venerable tools like make(1) or chroot(1), but they’re just a short man page away3.

It’s not just tools, though. I couldn’t explain the features of C++ in fewer than several thousand words (same goes for Rust). GNU continues to add proprietary extensions and unnecessary features to everything they work on. Every update shipped to your phone is making it slower to ensure you’ll buy the new one. Desktop applications are shipping entire web browsers into your disk and your RAM; server applications ship entire operating systems in glorified chroots; and hundreds of megabytes of JavaScript, ads, and spyware are shoved down the pipe on every web page you visit.

This is an epidemic. It’s time we cut this shit out. Please, design your systems with simplicity in mind. Moore’s law is running out4, the free lunch is coming to an end. We have heaps and heaps of complicated, fragile abstractions to dismantle.


  1. That I’ve seen (or heard of) ↩︎

  2. “Those who don’t understand UNIX are doomed to reinvent it, poorly.” ↩︎

  3. Of course, "…full documentation for make is maintained as a GNU info page…" ↩︎

  4. Transistors are approaching a scale where quantum problems come into play, and we are limited by the speed of light without getting any smaller. The RAM bottleneck is another serious issue, for which innovation has been stagnant for some time now. ↩︎

Have a comment on one of my posts? Start a discussion in my public inbox by sending an email to ~sircmpwn/[email protected] [mailing list etiquette]

Articles from blogs I read Generated by openring

Go on ARM and Beyond

The industry is abuzz about non-x86 processors recently, so we thought it would be worth a brief post about Go’s support for them. It has always been important to us for Go to be portable, not overfitting to any particular operating sys…

via The Go Programming Language Blog December 17, 2020

Status update, December 2020

Hi all! This status update is the 24th one, so it’s been 2 years I’ve started writing those now (ignoring a little hiatus). Time flies! This month I’ve invested a lot of time into wlroots. My main focus has been renderer v6, which has now been internally rol…

via emersion December 16, 2020

What's cooking on Sourcehut? December 2020

A brisk wind of winter chill sets a stir down my spine, as I sit down with a fresh cup of coffee to yarn a story of careful engineering and passionate spirit that took place over the course of 30 days. The last 30 days. Cause this is the monthly “what’s cook…

via Blogs on Sourcehut December 15, 2020
The content for this site is CC-BY-SA. The code for this site is MIT.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK