by CleverLikeAnOx · 4y ago · 0 comments
I love this. I wish more software was built with limited scope. Not every application needs to grow larger and change forever.
Think of those tools that you've really enjoyed using - perhaps the mid-range HP calculators, or a great fountain pen or knife, or even a spanner that just fits perfectly. These are all tools that have been designed with a clear idea of their purpose, and their design has focused on that purpose.
A great chef's knife doesn't incorporate a bottle-opener - that could be added but it would be a less usable knife.
Memorable products have long life-spans. Users treasure their fountain pen, often for life. I'm still disappointed at the loss of my HP11C. But who is going to mourn a programming language or front-end that drops out of favour because it's grown unusably big and cumbersome as the designers increase scope. When it comes to their next project, users will consider something cleaner, something that does all but only what they need.
What? Minimalism is very much favoured in HN. Unix-philosophy: do one thing well
I’ve written software that has lasted over 25 years. That’s not forever, but it’s nothing to sneeze at.
I’ve found the secret to long-lasting software, is to use boring tech. Put away the Buzzword Bingo cards.
I've given a talk at work about this one (but it ended up being more about people and kneejerk decision making processes where something cool is picked instead of something reliable), it resonated with a lot of people.
I'm still hoping to get to work with Go again sometimes, I think it embodies the adage pretty well in that it's resistant to change; I'm confident code written today in Go is still going to be the same and working in ten years' time, unlike any other programming language I've worked in.
Less is more. Less but better (to invoke Dieter Rams here). The goal should be a slow, incremental improvement over time, towards perfection.
To get adopted, your "total experience" must be better the status quo.
So, authors of software need "de facto" integrations with other products. To handle features their product doesn't.
Unix utilities do "limited scope" brilliantly.
In, say, the Scala ecosystem... limited scope isn't so brilliant. Sometimes you just can't do limited scope.
Every year the "status quo" in software rises that much higher. Providing a better experience increasingly requires ever more resources to push a project to adoption.
As in Scala the programming language?
I find it is exactly the opposite. Scala is complicated and hard to learn, but if it can do anything well then it is allowing tools/libraries to be well-scoped and composed by the user.
To give an example: In Scala there are 3 libraries: - One for http requests - One for async calls - One for json (de)serialization
Those libraries don't know anything of each other and don't use the same interfaces/types, so by default you have to do some plumbing to make them work together.
But there are 2 more libraries: - One that provides integration of http and json - One the provides integration of http and async
As an end user that wants to build an async web app that uses json, you just have to add those 5 libraries and 5 imports and then everything just magically works out of the box. And it compile-time safe. No reflection or magic things happening. If anything doesn't work out, for example due to version differences, then it just doesn't compile and you adjust the plumbing yourself or update the libraries.
I seriously don't know any even half popular language that supports that. Take Rust for example. Rust has traits and allows you to make whatever types you have become compatible. But you can't write libraries on top of existing ones to do the plumbing for the user who then just picks the plumbing they like.
In Zig, I am using a TLS library that does not perform I/O, it just writes to writers and reads from readers, so using it with io_uring or DPDK or send/recv or pcap files requires 0 additional work.
> In Zig, I am using a TLS library that does not perform I/O, it just writes to writers and reads from readers, so using it with io_uring or DPDK or send/recv or pcap files requires 0 additional work.
Of course. Now imagine you need backpressure (reactive streaming) and writer/reader interfaces don't support that. Can someone provide you a library that you import and then automatically the types of the TLS library change and it works with the new interfaces that it doesn't even know exist? Because that's what I'm talking about.
Ok but now everyone who doesn't need that new better experience doesn't get their code broken anymore right? So it isn't a wash, we've gained a benefit.
People still use pens, for example. But if they want to write 100 copies of the same page, they'd much rather use a printer. People use hammers, but if they want to hammer in ten thousand nails, they might start thinking about automatic tools.
It's not the fastest or easiest, but it works, it's reliable, and it's cheap.
Anyway, in the context of software, think of the unix commandline tools; simple, single-purpose tools, a lot of which aren't updated frequently. But using those as lego blocks is directly or indirectly responsible for the multi-trillion industry we're in.
To me it implies that since the definition of perfection is always changing, you are continually altering course to get closer to where you want to be.