Slashdot Mirror


The Case Against GUIs, Revisited

snydeq writes "Deep End's Paul Venezia advocates the importance of the command line, in light of the increasing use of GUIs in today's technologies, as well as the increasing perception among admins that proponents of the CLI are dragging computing back to the 'dark ages of the C:\ prompt."

24 of 720 comments (clear)

  1. This, perhaps... by troff · · Score: 5, Insightful

    ... speaks more of the admins who assume that "CLI" == "C:\ prompt".
    Or the idiots who think "CLI" == "the GUI in front of me is therefore made unusable". The people at "GUI Industries" can't make a link or shortcut to the appropriate script?

    Why would you trust an admin who can't, as TFA indicates, edit a text file?

    1. Re:This, perhaps... by 19thNervousBreakdown · · Score: 5, Insightful

      Why would you trust an admin who can't, as TFA indicates, edit a text file?

      Or write a safe regex:

      $ echo '123a123b123c123' | sed 's/123.123.123./321.321.321./g'
      321.321.321.123

      Gotta love the way he hand-waved the "half hour on a Wednesday" to do the whole transition, too. As someone who's done it, it is never, ever, ever that simple. Have fun finding bugs like the above, fixing them, finding out that your fix invalidates your entire solution, approaching it from a different angle, looking up an obscure syntax you can't remember even though you use sed/awk/grep every day, finding out you've got a slightly older version or yours wasn't compiled with --enable-double-buttgrep ... sure, the "30 minutes" sounds great when you're trying to make a point, but it also sounds ridiculous to anyone who's actually done it twice.

      I love me some CLI, and I'd lose my mind if I didn't have it available, but promoting either one to the exclusion of the other is asanine.

      --
      <xml><I><am><so><damn>Web 2.0</damn></so></am></I></xml>
    2. Re:This, perhaps... by sarysa · · Score: 5, Insightful

      It seems that the one thing that bash-fu black belts and complete novices have in common is that they don't realize both can be used in parallel...

      --
      Charisma is the measure of someone's ability to lie with a straight face.
    3. Re:This, perhaps... by lennier · · Score: 4, Interesting

      The people at "GUI Industries" can't make a link or shortcut to the appropriate script?

      Yes.

      This is a huge flaw in almost all current GUI models. They've reinvented a whole object/component-based architecture on top of the old process/file-based CLI-accessible portions of the OS, and then provided basically no scriptability of those objects, and even less ways to interface the topmost GUI level to any scripts you do manage to somehow cobble together.

      (Possible noteworthy exception-in-progress being PowerShell 2, Apple Automator (except AppleScript is a horrible language because it tries to be fake-English), and maybe some parts of RiscOS and OS/2. )

      But this object/scripting gap is something I noticed way back in my teens, in the 80s, and couldn't bring myself to believe that the Top Minds in software architecture had missed this glaring oversight. But they had. Apparently everyone was going to either program in raw C++, or click icons, and nothing much in between. Basically there was no thought put into anything like a 'Unix shell' for Finder / Explorer and friends.

      I mean, 5 seconds thought suggests that someone should have come up with a quick visual tool for dragging icons into a box, drawing lines between them, and having that save and load from a text file describing connections between components. And then make that a fundamental part of the OS and build all OS and application GUIs using that. If you ever came across a GUI you wanted to build for an application that couldn't be expressed in that language, then mark it as a bug in the language and extend the language.

      Then we'd have had something approaching the power of Unix scripting for visual desktops, and we would have . But no. We went for a 'all GUIs will be sealed binaries written in low-level assembler or C++" approach. Then we deconstructed the GUI as web pages, and again, first chance we got, we ripped out Tim Berners-Lee's HTML editor component from all web browsers, enforced a hard split between "web server" and "web browser", and once again destroyed the ability for users to do their own interface design and to program their own workflow.

      It's like we have this obsession with making things hard for ourselves just to keep application developers in jobs.

      --
      You are not a brain: http://books.google.com/books?id=2oV61CeDx-YC
    4. Re:This, perhaps... by lennier · · Score: 4, Insightful

      GUI = makes it easy to do one off tasks, because the interface can be made intuitive.
      CLI = makes it easy to do repetitive tasks, because they can be easily scripted.

      That task split between GUI and CLI is exactly what I think went wrong when GUIs were first designed.

      What we should have done was created a GUI which has exact formal one-for-one-correspondence with the underlying CLI, so that for any given task, you can use the interface of your choice that works for you - or create new graphical interfaces for the special custom jobs you end up doing multiple times.

      And it wouldn't have been that hard to do. GUIs involve message passing, but we chose not to expose those messages as scriptable 'commands' at the same level as a CLI. We hid them and required C++ and other system/application languages to send those messages in full, then exposed a tiny fraction of them to various "scripting languages". But you can't write all applications in scripting languages, so it's a lossy conversion filter.

      The result is, we've got at least three levels to our systems: a reasonably transparent 1960s-batch-system derived command/process/file based layer, an opaque 1980s Smalltalk-derived object/component layer, and finally combined applications/GUI/preference files launched by the 1960s layer which orchestrate the 1980s layer to do stuff. We can't use the 1960s layer (CLI) to do everything the 1980s layer (GUI plus services/components/DLLs) can do, because the 1960s layer has fundamental connection concepts like piping and "everything is a file which is an I/O stream" which simply don't exist in the 1980s "everything is an object" layer. It's impedance mismatch at the OS level.

      The big problem with an impedance mismatch is that you can't solve it by adding more lossy-conversion layers. It can only be really "solved" by creating a new abstraction which has the features of both, but that seems impossible now that we have a huge weight of legacy code. I'd been hoping that Linux in the 2000s would give us some hope of breaking away from the Windows cruft and coming up with a simple unified desktop framework. But GNOME and KDE seem to have just fragmented the situation even more.

      Wish I could see a plausible way out of this mess.

      --
      You are not a brain: http://books.google.com/books?id=2oV61CeDx-YC
  2. Talk to your computer? by MrEricSir · · Score: 5, Funny

    I'm afraid I can't let you do that, Dave.

    --
    There's no -1 for "I don't get it."
  3. Re:First post by twollamalove · · Score: 4, Funny

    Yes, but to master same functionality using windows batch files it takes a lifetime of discipline

  4. CLI is no longer essential by blair1q · · Score: 4, Funny

    CLI is not essential. It's a holdover from a time when we thought words were a good way to express function. And then left the 'e' off "creat" for kicks.

    Everything can be done in a GUI. I don't see why not. We just haven't made that happen yet.

    1. Re:CLI is no longer essential by Sc4Freak · · Score: 4, Insightful

      Uh, using a GUI doesn't preclude you from editing text. Windows is developed and compiled in Visual Studio, which is a GUI-based IDE.

  5. Re:Dead on by StikyPad · · Score: 4, Insightful

    Human beings invented symbolic language because it's simply more expressive than pointing and grunting. CLIs are superior to GUIs for the same reason.

    CLIs are superior to GUIs in the same way romance novels are superior to sex. Sometimes taking the time to carefully describe things in clear, unambiguous detail is important, but sometimes pointing and grunting is both more effective and and more satisfying.

    And when's the last time you edited photos, video, or audio with a CLI?

  6. Dark ages of the C:\ prompt by Sir+Realist · · Score: 5, Insightful

    Anyone who thinks that a command line prompt starts with a 'C:\' has no idea what they're talking about.

  7. CLI != DOS by tnk1 · · Score: 4, Insightful

    While the C:\ prompt would really be the Dark Ages all over again, command lines done right can be significantly faster to use for experienced admins. Not to mention they can also be used in diverse interface environments like serial connections in almost exactly the same way that they are used anywhere else. It's significantly easier to script from the command line as well.

    Just about every shell available on a UNIX-like OS is at least ten times better than DOS ever was. Lumping in bash with DOS is like taking a BMW and saying it is equivalent to a Yugo because they both have four wheels and an internal combustion engine.

    There's certainly a place for a GUI, and well designed GUI apps are lifesavers in big environments where seeing a graphical representation of 1000 servers as icons and being able to click and drag to select and execute group commands is a much easier way to work with that many servers. Having 1000 lines of text zoom by is going to be hard to take in at a glance. I love the GUIs that I use for certain tasks like visualization and management of complex environments.

    Still, anyone who considers the command line to be the Dark Ages either doesn't know how to type, doesn't understand how to use a CLI, or is simply trying to sell you a pretty GUI app.

  8. Why not both? by Kenshin · · Score: 5, Insightful

    Why does this always have to degenerate into a Campbell's Chunky Soup "Fork or Spoon" debate? Why not just use the most appropriate interface for the task at hand?

    A GUI can be shit for some things, and (unless you live and breathe CLI) a CLI can be too complex and unwieldy for other things.

    --

    Does it make you happy you're so strange?

  9. Re:Dead on by tweak13 · · Score: 4, Informative

    And when's the last time you edited photos, video, or audio with a CLI?

    When I was a sysadmin at a radio station, I wrote scripts that processed audio, including cutting and splicing. Having it automated saved a hell of a lot of time for the people that used to have to sit in front of a GUI and do it.

    Of course, there's all kinds of audio work that couldn't be done by script. The point is, you need both kinds, even for audio and video.

  10. Re:First post by kikito · · Score: 4, Funny

    And masochism

  11. Re:Raises hand by SpiralSpirit · · Score: 4, Insightful

    or you could have made a photoshop action while applying the first one, then told it to do the action to every image in the folder. done in less than five minutes. probably only about 1, if you know what you're doing. There's a lot to be said for knowing how to use the tools!

  12. Re:First post by Jeremiah+Cornelius · · Score: 5, Funny

    I like my CLI smartphone. With wget and Perl5, I don't need any of those useless, cluttery widgets for connecting GPS to reviews of local restaurants - and dialling is a breeze, as I grep through the flatfile of contacts I have acumulated by rsyncing from my desktop dump of the company LDAP.

    --
    "Flyin' in just a sweet place,
    Never been known to fail..."
  13. Re:First post by sortius_nod · · Score: 4, Interesting

    Batch files are easy. The only people I've found to have trouble with any sort of scripting are people who grew up only using GUIs.

    That being said, I grew up on old Macs and only started using windows at 15 when I got my first job in a computer shop. Not having used a CLI previously I dove straight into it and learnt all I could.

    The problem with the whole user/CLI disconnection is that there is a perception among certification/uni degree holders that once you finish your qualification you don't need to learn anything further. I saw this happen to many people who graduated with my fiance, they learnt Windows, learnt how to use the GUIs for admin, and nothing more.

    To be honest, I blame complacency and the fear of intellectualism for the decline in the CLI. It seems to be "cool" to be stupid in developed nations, intellectualism and learning are almost feared. Maybe it's due to editorials damming intellectualism, maybe it's to do with politicians damming intellectualism. I'm not quite sure, whatever the cause it's one of the worst things to happen to humanity.

  14. Re:First post by Anonymous Coward · · Score: 5, Funny

    At last, I've found another n900 user! Brilliant phone.

  15. Re:First post by Caerdwyn · · Score: 4, Insightful

    By your own admission you've devoted half a lifetime or more to developing computer skills. Should everybody have to do that? Are people who don't devote half a lifetime specifically to computing skills "stupid' and "fearful"?

    This is just a form of elitism. I'm not even going to call it intellectual elitism, as preferring CLIs is no more a demonstration of superiority or intellect than preferring GUIs is a demonstration of inferiority or stupidity.

    --
    Everybody gets what the majority deserves.
  16. Re:First post by im_thatoneguy · · Score: 4, Insightful

    The trouble with CLIs though is that the functions aren't always named whatever you would expect so you *have* to look up the function name and formatting.

    If a command line could be written as:

    "Take this image, resize it by 50% and increase the contrast 10%" then people would use CLIs all the time.

    Instead it goes:

    ImageProcessor ... /help ... ...
    ImageProcessor -scale 50p... /help ...
    Image Processor -scale 50p -filter (contrast,1.1) .. /help ...

    etc...
    You have to keep looking through a huge documentation system. GUIs at least present you with the documentation *AS* the interface.

    You don't need to know what the "Contrast" filter is exactly called, you just look through the list by default and choose the one that closest matches what you want.

    If we had smarter more adaptable CLIs people would be far more familiar instead you find out you missed a comma somewhere and it takes you 5 minutes to track that down. Or you try to figure out if adjusting contrast is even a function at all.

  17. Re:First post by msauve · · Score: 5, Insightful

    "By your own admission you've devoted half a lifetime or more to developing computer skills. Should everybody have to do that? Are people who don't devote half a lifetime specifically to computing skills "stupid' and "fearful"?"

    Yes, and yes, if their career is administering computers (or computer networks, which is what the article is about).

    --
    "National Security is the chief cause of national insecurity." - Celine's First Law
  18. Re:Raises hand by lennier · · Score: 5, Insightful

    If a human is required, it's editing.

    That's your opinion. I think the point the original poster is making (certainly the point I'd make) is that our interfaces should be agnostic as to whether a human or a decision-making algorithm is driving them.

    Because otherwise, how are we going to take control of our workflow and delegate the automatable parts of it to automation, if the interfaces we use stubbornly insist that 'no, a human must be in the loop to do that!'

    This attitude, which sadly is rife among GUI designers, is keeping us stuck in the dark ages. It fundamentally shouldn't matter if a human or a program is doin any job on your desktop. End of story. It's not the interface's job to decide. If a script can take a look at a JPEG, apply a beauty algorithm and decide to fudge the colour contrast and recrop - and if a human can look at that afterwards and decide that it's good and keep it - well, then that's editing, isn't it? But it's done by a partnership of human and machine, as it should be.

    Don't force us to decide between human and machine for every job, and especially, as an application designer, don't impose your conception of what tasks should be done by which. As a user, closer to the coalface, I might well have a better idea. If your software gets in the way of my automation, it's wrong.

    --
    You are not a brain: http://books.google.com/books?id=2oV61CeDx-YC
  19. Re:First post by LordLimecat · · Score: 4, Insightful

    It is often worth doing cost-benefit analysis and determining if the time spent reading the documentation is worth the time that will be saved by using CLI.

    If someone asks me, for example, to add a user to active directory, it doesnt really make sense to research how to get LDIFDE or whatever to do an import properly. If, however, they hand me a CSV file of 100000 contacts and asks me to import them to active directory, then you better believe Im breaking out cygwin and awk documentation, and touching up on the active directory CLI tools. I may spend a few hours learning how to work them, but I will save hundreds of hours in time.

    This isnt a "heres the right answer" scenario. You have to use your brain and your experience to choose the right tool for your job. That, as much as anything else, is the mark of a good systems administrator, not knowing every CLI in existence. A knowledgable SysAdmin can be inefficient if he needlessly ignores some tools (GUI) that are perfectly suitable to a task just so that he can use the same tool for every task.