170 points · by sergiomattei · 5y ago · 110 comments
On the other hand, I like using my Remarkable because it's just for handwritten notes and annotated documents.
I wouldn't say that prescriptive is better than descriptive, or the opposite. As much as dislike the phrase, it depends. I want my fundamental tools to be flexible. But I don't want to waste all my time configuring stuff.
Absolutely not. Compare most WiFi connection UIs to WPA_supplicant.
On windows: 'connection failed'
On wpa_supplicant: 'associating... atempting authentication... getting dhcpc lease... dhcp timed out'
One says "sorry computer doesn't work" and the other tells you what you need to deal with the problem. Stop infantilising users, it's disrespectful and counter productive.
Yet another logically-vacuous emotionally-manipulative statement.
The equally-manipulative counter-argument to that is "You're not emphasizing with the users - how would YOU like for, say, government bureaucrats to give you back a bunch of technical gibberish instead of telling you how you filled out the form incorrectly in plain English?"
Use logic instead. I think that it's easy to build interfaces that are friendly to both power users and non-power-users - talk about the possibility of that using logic instead of trying to manipulate the emotions of others to shame them into agreeing with you.
that goes both ways. if you show the wpa_supplicant message, my mother wouldn't even understand if she is connected or not. nor would she gain anything by that information. you just came up with the other side of the same coin of terrible UX.
If you're having a good day, you can get them to leave a pop-up error message open for long enough to read the whole thing on the third or fourth attempt. On a good day...
I learned VI on some UNIX tools my father installed on our DOS computer in the 90's. Then I learned Emacs in 2000 and have been tweaking my setup ever since. Sure, it's not perfect, every few years when I have some down time I will spend a day fiddling with things heretofore unlearned, but the general setup has worked well (and gotten better) for two decades.
How many other editors have come and gone in that time?
Is it? Or is it mostly the IKEA effect ("I spent time on this, so it must be valuable") and busywork?
Was anybody's choice of editor really a major point in their developer progress and productivity?
And so, even if I was born an expert vi user, I don't think I would have gotten any boost in productivity as a developer. Just my opinion though! :)
(Yes, I know how you can get vi editing in VS. I purchased a copy of ViEmu.)
Having used multiple IDEs and editors, from DOS edit/qbasic to notepad.exe, RHIDE from DJGPP, Visual Studio, Xemacs (briefly), Vim, Eclipse, IntelliJ, probably others...
Yes, some of those bring unique abilities that the others lack, that have an effect on the way I write software. Had I just picked one editor or IDE and never used any others, I would be much less accomplished. Vim, for example, is for me incredibly rapid at rearranging and replacing words/lines/regions of text compared to the others.
I believe you are picking a point that wasn't my main one. I may not have made it clear, but in my view, I'm going to be using a tool (in this case, an editor), so if I can pick one that is powerful and will be around, it's a net win to learn it. I'm going to learn it anyway (through use).
Emacs is insanely powerful and it's not going anywhere, and I'm fairly certain it was a major point in my progress and productivity, and it continues to be.
You want libraries and platforms to be descriptive, and end-user functionality to be prescriptive. They're different types of software.
you proved the article's point with these examples. If you want to write software that can become a sustainable business, don't do what linux and emacs did. It only serves power users and other businesses who will sell services.
I also prefer descriptive tools (I hate rails/django), but I acknowledge that descriptive is typically worse UX unless the user is a power user.
Serving the most users (ie. NOT power users) is usually the best economic decision as well.
The huge issue with components that don't give you much choice is that they do not compose well. You find two components clash on some decision and neither has any mechanism to resolve the issue.
This is frequently the case with "frameworks", which tend to want to control all aspects of your application.
Does this make your life simpler? Sure, but only if your application is exactly or very closely to what the author of the framework envisioned.
On the other hand there are "tools/utilities". These can fit same role/functionality as "frameworks", but they are not intrusive, don't tell you how to put your application together. Rather, they give you tools with assumption you will know how to use them.
Does this make your life simpler? SURE If you have non-standard application and you know what you are doing you want to compose your application from tools that do not demand too much from the structure of application, dependencies, etc.
If you are novice developer it might be temporarily useful to use more prescriptive tools. You don't know how to put stuff together so you might just as well learn how others do it.
If you are advanced you will know what to use. If I know I will be working on a very standard application I might just as well use something that takes care of it all for me.
Of course, I think this whole idea is basically flirting the same thoughts as "sensible defaults" and "paradox of choice". Which is somewhat of an ironic fight between having all of the options, but not requiring all of the options. A hedge, if you will, around what you may want to do in the future.
What I interpret "prescriptive" to be is that the message returned to the user on failure should give some hints how to make the program succeed. Because there are more ways to fail than the program author could think of, or more than fit on a screen, it is opinionated which advice to give then (a subset of all known and unknown possible fixes).
I always tell my coworkers, an error message is a call for action, not an out-of-jail-I-just-stop-here card. The better you guide the user, the more efficient she can use our software.
I think this is the same "mechanism, not policy" debate repackaged, and I certainly think mechanism is better than policy, where the author of the post thinks otherwise.
That said, I think that going all-in on "mechanism, not policy" is a mistake too.
I believe there is a middle ground: focusing on mechanism, but providing a sane default policy that lets the user get stuff done fast and change things later if they need to.
I wrote more about this idea in https://gavinhoward.com/2021/03/lessons-learned-as-a-user-1-... .
I agree with this.
I see parallels to a lot of frameworks, languages, libraries, etc: the "getting started" guide is fairly simple, but then to do a "real" thing with it, you need to basically throw all that away and learn a whole different system.
The other mistake a lot of systems make is abstracting away the complexity with defaults (aka "magic"), but making it so if you do want to change one thing you have to learn and re-implement the entire configuration yourself.
In both cases, it's the learning curve that is important to think about: going from usable defaults (beginner) to customization (expert) should not be one giant all-or-nothing step.
As a physical example, I can't remember the last time we had to educate people on how to "pump your brakes" in the rain. Turns out, there are flat out better mechanisms to control for some of these things. I suspect many lane assist technologies and other mechanisms to eventually grow to eclipse environments that lack them.
But, bringing that back to the software world is hard. There are things that we don't give a second thought to in a lot of what we do. Endianness is an easy example of something that you used to not be able to avoid. How do we get more of our concerns across that line? Can we?
However, I still have learned how to pump brakes in rain, and I taught it to my wife. The reason is that the better mechanism, anti-lock braking systems in this case, can always fail.
Joel Spolsky had a whole post about this: https://www.joelonsoftware.com/2002/11/11/the-law-of-leaky-a... .
If we only teach the happy path, we are setting ourselves and everyone else up for failure when the happy path fails, which it will.
As another counterpoint, there is so much automation in modern airplanes that pilots are relying too much on the automation and losing their basic airmanship skills. (https://www.nbcnews.com/news/us-news/airline-pilots-depend-t...)
I think the same problem is starting to show in all of the assist technologies in cars. People are starting to rely more on those technologies than they should.
Basically, at some point, putting more concerns across the line is a bad idea because we will eventually lose the ability to handle things when they go wrong. We also lose institutional knowledge. (https://www.youtube.com/watch?v=ZSRHeXYDLko)
Other examples include monoculture of crops. Generally, not a good idea. Happens wherever it can, though.
That is, I agree with your points. I just have difficulty thinking we have the full picture covered. :(
Have you seen the commercials where someone is driving and almost gets everyone killed by taking their eyes off the road. The system slams them to a halt, barely saving them, and the parent happily smiles - family safe, nothing to learn here. In one commercial, the parent is supposed to be teaching their child to drive.
These driving aids should work differently. If they ever have to emergency-brake to save you they should immediately activate a small packet of thermite in the ECU, rendering the car into a brick. You proved you can't use it safely so you shouldn't have it.
It would be different if these devices worked, but they don't. They just tell you that your lack of skill is okay.
The title aside, I don't actually disagree with anything in the article. I've had similar experiences to the author with tools like linters and formatters. Agreeing on configuration for them can waste a surprising amount of time.
As time goes on, I do find myself more willing to change to fit my tools rather than change them to fit me. Often, I find the creator of an opinionated tool has more carefully thought through their opinions than I have anyway. Even if they haven't, tools like gofmt showcase the power of consistency for consistency's sake.
That said, I use a tiling window manager and I'm pretty insistent that control belongs where caps lock normally is, so clearly I'm not entirely bought in to my own rhetoric.
“Descriptive” software accelerates exploration, and “prescriptive” software is a lower-complexity implementation, either a prototype or optimized for specific purpose. While “prescriptive” normally offers better performance (for the purpose it is designed for), “descriptive” tends to linger around longer because of it flexibility, but neither is permanent anyway. Making a progress is merely going through those two back and forth again and again. There’s no end.
We hire software to do jobs like how we hire people to do jobs. Both become better when they share their opinion and help us decide how to fix or approach issues.
I think that is why things like VSCode, emacs framework, get popular. Most of us don't want to spend a long time configuring the tools, but just get the job done. For most of us, a sane default is more than enough.
Are you sarcastic?
Edit: Extended quote
My favorite example of a good balance here is React's 'dangerouslySetInnerHTML'. Clear opinion, check, but you've got the escape hatch you need.
> It's great until it's not and then you're kinda screwed
Do you have some example? Because black frees us of any argument over coding style in merge requests and this is great. It helps us focus on the important things. I've seen places where I don't quite like what black enforces, but this is very rare and it is a matter of taste and you get used to things, so meh.
In contrast, standard (for JS) seems opinionated at first does not come remotely close and leaves many things without opinion, and unfortunately we don't have the same opinions and tastes, so we regularly argue over them and this is a waste of time.
I don't actually quite like standard's rules but since this is what we use, I wish it were much more opinionated (over brace position in React files, line length, how obj.hasOwnProperty should be banned, how to declare methods in React components, how order imports should be sorted alphabetically, or which variable we can deconstruct…).
I hear this all the time, along with 'Juniors will be confused' but it never seems reasonable. Sometimes I line up variables:
name_field_id = 0x01
address_field_id = 0x02
Sometimes I don't. I do it when the cognitive load is more on the values or the identifiers, as a group. No tool is going to help with this judgement call.Sometimes stuffing a method on one line is best because you get ten boilerplate methods on ten lines and can see the similarity, other times that's just silly and they'd be best spaced normally.
Sometimes I use a rightward assignment { ... } => x because it fits the code better, leaving the reference to x right next to the next statement which will use it.
> so we regularly argue over them and this is a waste of time.
Strange disfunction. It sounds like your team is too opinionated to allow other opinions.
> I wish it were much more opinionated
Suggest turning on more rules but leaving them as suggestions. Where any reason to not follow them is enough. You do want to make sure people have some reason to make sure they aren't just leaving a mess but it's easier to get them to care about style if they have a say in what clean looks like.
As an aside, part of the issue is comfort with the tooling. If I have to work in someone else's file and I hate the syntax and it's a big deal, I first run the linter to make the code look my way, make the change, run the linter to go back to their style, squash it onto my change, and rebase away the first lint. Work done, no problems dealing with someone else's style - even in the case that it would otherwise be a problem. I never have to, but because I can it doesn't bug me.
I think the ideal is that the software is as configurable as it needs to be in order to be useful to the people that use it, but that there's a standard configuration with sensible defaults.
But then you find articles like this, which take it to the point of pushing opinionated software principals as its own opinion, framing such design as universally "better" and that that is how software "should" be written... I find myself unable to just sit idly by and not respond to such a thought--seeing where it is on the HN front page--without at least some kind of rebuttal, as it is a thought that I find actively harmful for trying to not just invite people to consider their options, or think about the tradeoffs in what they are trying to accomplish, but to try to actively discourage people from building software that adds value to the world in the form of doing something someone other than the developer wanted done.
The world of this article--where everything is "use it or don't"--is a world full of wrong-handed scissors, one-size-fits-many clothing, single-station radios, and "no substitutions" menus that are simultaneously prix fixe. This is a world where people who show up saying "I know I could be X% more effective (or even simply happier) if only your software did Y" are told "you don't know what you are talking about; and, even if you somehow did, you should learn to make do without as that's the austere thing to do". This is a world where not only is everyone working at merely an average level of efficiency, but no one gets to enjoy the art or experience of doing anything, as a world without color is supposedly a world with less stress.
To enter the same narrative frame as this author: if I hire software, I want that software to be working for me. I often do know what I need to be effective, and I'm hiring software to do that job: if by any of the developer's hubris, incompetence, or laziness, the software is incapable of doing the thing I wanted it to do the way I needed it done, I'm going to either hack their masterpiece until it works the way I want it to, or I'm going to fire it and find (yes) a "better" piece of software. FWIW, in this way, I'm lucky: I can build my own software, and I can modify your software (even if it is closed source!)... not everyone can.
And that's where I feel like this is most dangerous: that software developers are effectively building the world for everyone else, and when we drink the kool-ade of these "opinionated" manifestos, we begin to believe that we are best able to decide how things should work for everyone: that there is one way to best edit videos, or write documents, or compose music. We should listen to our users--even if they are other developers--to learn what would empower them and make them effective, and then add enough settings (or extension points or whatever: "even software should have screws"! https://www.youtube.com/watch?v=ReKCp9K_Jqw) to let them feel like themselves.
Because the alternative is just sad :(. Again: there is a time and a place for being opinionated, and it isn't that I'm saying that concept is always broken... but there is maybe nothing more infuriating than something that is almost perfect, and the decision to resist having settings or options in your software because of a claim that they are some kind of cop out instead of an admittance that people have different needs, interests, or understandings, is the kind of "opinion" I have opinions about. Remember: "Opinions are like assholes: everyone has one, but they think each others stink." -- Simone Elkeles
I'm a big fan of Prettier for this very reason. It just works. It's decent. It lets everyone get on with writing software. If a project has ESLint, there's a high chance I'm going to be talking about semi-colons, or looking at oddly line-broken code. Someone else is going to notice it too, and want to fix it. Then we're all talking about the Airbnb config and what customisations we're going to make.
In recent years I've:
- Quit using Colemak and gone back to Qwerty
- Stopped using vim and went back to IntelliJ
- Stopped using custom fonts, themes and just stuck to defaults
- Become more selective about what plugins I use
And I'm suprisingly (or unsurprisingly) more productive.
People do this all the time.
s/ ...matching regex... / ...replacement string... /g
The use in the parent post therefor means: "Replace every 'descriptive' in the text with the string 'proscriptive'."[1] https://www.gnu.org/software/sed/manual/html_node/The-_0022s...
https://www.gnu.org/software/sed/manual/html_node/The-_0022s...
Though, I am excited about Roslyn Analyzers and how dotnet seems to be pulling together a language standard LINT system. https://github.com/dotnet/roslyn-analyzers
No matter how good your prescription system is, it is going to be a bad fit for some programmers use case.
I've always thought if it in the context of the Pareto principle.
80% of the time people will use the defaults but 20% of the time will need more customization.
Take for example Apple vs. Microsoft/Android. The PC-environment is legendarily descriptive. But the Apple environment is not prescriptive. It's just "intuitive" (for those who buy into it), or, less charitably, it hides the descriptions while at the same time not being explicitly prescriptive either. What do we call this Apple system? It's neither prescriptive nor descriptive.
To me that was a wonderfully discoverable and seamless experience.