Improving the UX of (command-line) tools
blog.opalang.org
Improving the UX of (command-line) tools
1–10 of 16 posts
Re: Improving the UX of (command-line) tools
#2As I predicted years ago, Static and Dynamic typing are starting to lose their distinctions. I wonder if someone has started producing an as you type type inferencer? Given the right language design, I don't see why the editor can't keep track of all of these details, revealing types on mouseover and greying out vars that are ambiguously typed, much as syntax errors are hi-lighted in programmer's editors.
Re: Improving the UX of (command-line) tools
#3Opa has some brilliant design decisions. Also, with the advent of Source Maps in Chrome and Firefox, the time is right for an end-to-end integrated web development language. Though I do find it strange as a long time OO person that "tightly coupled" is used as a positive trait in the "Hello Opa" post. As I predicted years ago, Static and Dynamic typing are starting to lose their distinctions. I wonder if someone has…
Re: Improving the UX of (command-line) tools
#4Opa has some brilliant design decisions. Also, with the advent of Source Maps in Chrome and Firefox, the time is right for an end-to-end integrated web development language. Though I do find it strange as a long time OO person that "tightly coupled" is used as a positive trait in the "Hello Opa" post. As I predicted years ago, Static and Dynamic typing are starting to lose their distinctions. I wonder if someone has…
Re: Improving the UX of (command-line) tools
#5Opa has some brilliant design decisions. Also, with the advent of Source Maps in Chrome and Firefox, the time is right for an end-to-end integrated web development language. Though I do find it strange as a long time OO person that "tightly coupled" is used as a positive trait in the "Hello Opa" post. As I predicted years ago, Static and Dynamic typing are starting to lose their distinctions. I wonder if someone has…
The OO tenet says "Don't couple unrelated things". The converse of this is "Don't decouple related things", which is equally valid yet often ignored. Decoupling X and Y means that in the cases where you want to use X and Y together you need to connect them together again. This is a bad thing if in 99% of the cases you want to use X and Y together.
An example of this is the Java file API. In an effort to decouple a reference to a file, a reference to a stream of the file's contents, a reference to an arbitrary stream, reading from a stream, and reading from a stream in a buffered way, we end up with FIVE classes (File, FileInputStream, DataInputStream, InputStreamReader, BufferedReader) that will almost always be used together simply to read the contents of a file. This is of course an extreme example. A better design is to "couple" these things together in a gimmeTheContentsAlready(filename).
Likewise, the Opa guys are expecting that most people who use their stuff will use their database interface, and their language on both the server and the client, their easy client/server networking, and their http server. Shipping these as separate components would induce a lot of work to integrate them together again.
Re: Improving the UX of (command-line) tools
#6Opa has some brilliant design decisions. Also, with the advent of Source Maps in Chrome and Firefox, the time is right for an end-to-end integrated web development language. Though I do find it strange as a long time OO person that "tightly coupled" is used as a positive trait in the "Hello Opa" post. As I predicted years ago, Static and Dynamic typing are starting to lose their distinctions. I wonder if someone has…
Re: Improving the UX of (command-line) tools
#7Re: Improving the UX of (command-line) tools
#8First, I'm just barely old enough to remember using DOS on a machine without Windows -- which I believe is the last time that a GUI/DE wasn't viewed as 'essentially essential' for an end-user computing environment. However, I'm just young enough to remember growing up with Windows for most of my computing life, so it's not like I was indoctrinated into the ways of the command line from an early age. Far from it - I'd forgotten all the DOS commands I knew by the time I turned 10, and I actually only began learning Unix very recently (while in college).
I don't think command-line tools have a UX problem. If anything, we have a teaching problem. Command-line tools have a slight learning curve, but really nowhere near as much as many people think. The story of how I got into using the command-line for all (well, almost all) my daily tasks is a bit too long to post here (unless people are interested), but in short: I went from not knowing the difference between cd and dd all in the span of a month. (Thankfully, I did not have to learn those two commands the hard way!)
Why was I able to do it? Because Unix has a ridiculously uniform design, and is unbelievably modular. UI designers today should strive for the uniformity that my GNU system has. (I use GNU, but this comment applies for the most part to other systems, like the BSD-based varieties, and is largely, though not completely, true even when comparing two different systems!). There are a few wrinkles around the edges, but when you consider the very distributed/patchwork way that modern POSIX systems came to be, it's almost miraculous that the single-dash switches vs. double-dash options distinction works in most cases the way you'd expect. The difference between required arguments and optional parameters is implemented very well in most utilities (it's rare that I have to specify unnecessary flags for required parameters, for example). Combining switches also works the way you'd expect on most utilities, and even the naming is consistent (-h, -v, -l, -a, --help, --verbose, etc. follow the Principle of Least Surprise (POLS) in all but very few cases). Even if there are differences between, say, ls -G on BSD and ls --color on GNU, that's a matter of the way those basic utilities were implemented, and the interface itself is still fairly uniform. (And I'm willing to grant some leeway for such fundamental utilities as 'ls', since these tools develop over a period of time).
That's not to say that everything has to follow the Unix-like model. I'm not saying that Opa's efforts aren't valuable simply because they're not standard POSIX. On the contrary, I think that tailoring a command-line tool to the task at hand can be very valuable - SQL queries fall into this category as well.
But they're valuable because they provide a modular (scriptable) tool that modify a familiar interface to make it easier to use in a domain-specific context with minimal violations of the POLS. That's fundamentally different from improving the UX of the command line; instead, it's applying the general UI principles of command line tools to a specific context. All instances of a general UI violate the POLS in some way by definition; the goal is to minimize that.
In the end, I can't think of any other UI that follows the Principle of Least Surprise as well as Unix does, and it's the most fundamental command-line tool in my life. We may have a problem with the command line, but the command line does not have a problem with UI.
(Edit: Does someone know how to write an asterisk without causing it to be parsed as the opening of an italicized block, as in -nix to refer to the wildcard 'Unix-like'? I'm on choppy in-flight internet and can't figure this out reliably with trial-and-error).
Re: Improving the UX of (command-line) tools
#9At the risk of sounding like a broken-record aging neckbeard (reality: I'm a college student with light stubble), I think the title of this thread is very misleading, even if the blog post itself contains valuable material. First, I'm just barely old enough to remember using DOS on a machine without Windows -- which I believe is the last time that a GUI/DE wasn't viewed as 'essentially essential' for an end-user comp…
An example that pops to my mind is when you misspell a git command, and git suggest what you could've intended:
$ git pill
git: 'pill' is not a git command. See 'git --help'.
Did you mean this?
pull
That's already one step towards a better UI, but it could go even one step further if I could answer the question, ie: I press 'y' and git will pull.Of course I'm not criticizing GIT (which I think as a better UI than many tools already), it's just an example.
Re: Improving the UX of (command-line) tools
#10At the risk of sounding like a broken-record aging neckbeard (reality: I'm a college student with light stubble), I think the title of this thread is very misleading, even if the blog post itself contains valuable material. First, I'm just barely old enough to remember using DOS on a machine without Windows -- which I believe is the last time that a GUI/DE wasn't viewed as 'essentially essential' for an end-user comp…
I think there is much more that can be done to make tools more user-friendly. An example that pops to my mind is when you misspell a git command, and git suggest what you could've intended: $ git pill git: 'pill' is not a git command. See 'git --help'. Did you mean this? pull That's already one step towards a better UI, but it could go even one step further if I could answer the question, ie: I press 'y' and git will…