by jacobsenscott · 4y ago · 0 comments
Look at software that has been around for decades, continues to improve, never "needs" a re-write, and will never be re-written. It exists and is not uncommon. Things like the linux kernel, all the GNU utils, emacs, vim, apache, nginx, postgres. The list goes on. We know how to write software that lasts for decades, continuously improves, and doesn't need constant re-writes. You give it to skilled people who care about it, and don't put artificial corporate constraints or impose fad architectures on them.
I'm not saying the corporate model is "wrong" - it works. "Works" means it builds companies and generates profit. That is the goal. But it will not generate stable long lived well designed software. That's okay though because that isn't the goal. Sure, the poor quality cuts into the margins a bit, but not enough to matter.
At least half of the items on that list are still here purely on momentum and reputation from the time there were no alternatives, not because they were really that marvelous.
I use and even enjoy some of them, but they're far from great engineering.
I love Emacs, but it's a slow, crufty mess.
Vim is a huge pile of code with a lot of complexity in its codebase and hilariously bad design decisions like VimScript.
Apache is a mess from a security perspective (1.7k listed CVEs[1]), and still slower than Nginx.
Want to guess at the amount of lost productivity due to Apache vulnerabilities?
[1] https://www.cvedetails.com/vulnerability-list/vendor_id-45/A...
Individual parts of Linux go through relatively frequent rewrites (eg filesystems), but not the overall framework.
Even if you have plenty of skilled engineers, it doesn't mean that the business won't impose unrealistic timelines (and insist the timelines be met even if it means taking on loads of tech debt which never gets paid down) or change the requirements abruptly or even demand things that are inherently complex (without understanding the complexity).
In other words, there are plenty of ways that management can create complexity, and in my experience management-induced complexity is the most common kind (note that I'm faulting "management" for things that include "communication between engineers and management" because management ultimately owns the software development process).
1. an engineer under management pressure couldn't easily take an expedient dependency on the private internals of another system
2. teams could deploy their changes on their own cadence, so they didn't feel additional pressure to squeeze poorly-conceived things into one less-frequent release (many frequent releases are theoretically possible for monoliths, but much rarer for pretty understandable reasons)
Moreover, reliability improves because of the aforementioned reduced complexity but also because the blast radius for a reliability issue is scoped to the service, and security improves for the same "blast radius" reason (an attacker who compromises a component can only access that component's secrets and can only talk to that component's collaborators).
My suspicion is that microservices work very well when an organization has a strong architecture/SRE capability irrespective of management or product development capabilities, whereas a monolith depends on all capabilities firing on all cylinders.
If anything, Linux isn't afraid to rewrite the parts that need to be rewritten, and that's one of its strengths.
Apache, Vim, and Postgres have been "rewritten." Nginx is an httpd written from scratch that sort of has the same features as Apache. Neovim exists. And newer database technologies that care about performance have been written.
So if you diff 2.6.8..5.14 course you'll get a massive diff. But they got there by a long series of relatively small changes, with regular releases in between.
The tech debt amassed between the rewrites and then rewriting not to learn from past mistakes but to repeat them, is the issue.
The Linux kernel for instance gets big changes. The BKL took a very long time to fully remove.
The GNU utils needing a rewrite would be weird since most of them implement a pre-existing standard, so the need for a huge rewrite is very unlikely.
They don't get re-written because they can't be re-written without tearing down everything built on top. In every case though there is some newer software out there is inspired by but aiming to "fix" all the short comings of the predecessor.
I thought it was caused by every little piece of software being tied to giant product teams full of MBA majors that want to add 50 features a week
I mean not really. It does a tiny fraction of what Apache does, it just happens to do that specific fraction better.
The historical record disagrees. See for example RMS squashing better clang+emacs integration: https://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01...