• HiddenLayer555@lemmy.ml
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    5 hours ago

    CLI designers: “Here are the commands and arguments in a txt file, they’ll only change when absolutely necessary and we’ll be sure to inform you both in the docs and as a warning in the CLI itself.”

    GUI designers: “go fuck yourself and re-learn where we hid all the buttons this time, after waiting for our two second fly-in animation for every submenu of course. Don’t worry though, here’s a condescending popup tour that only shows you the most basic features you could already see with your eyes. If you’re still confused, here’s an AI chatbot that will just repeat the contents of the popup tour and then act like you’re an idiot. Hey, HEY! STOP WHAT YOU’RE DOING THIS INSTANT AND READ ABOUT OUR NEW BUZZWORD FEATURE YOU NEVER ASKED FOR! TRY IT RIGHT NOW OR ELSE! Also we’re keylogging you and recording your mouse movements as “analytics” for “”“improving””" our UI (even though it’s only getting worse with each new version), you understand. "

    • bestelbus22@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 hour ago

      CLI: Here’s a txt file, now memorize it you peasant

      Good GUI: Welcome back my friend, straight the thing again? Btw on the right you can see some relevant info and links.

      • HiddenLayer555@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        edit-2
        20 minutes ago

        CLI: Welcome back my friend, forgot a command or argument? Just type --help and read the super terse and bullshit free txt file in less time it takes for the GUI startup animations to finish. Too long? Type | grep to directly search for it in less time than it takes for the search button to expand and let you start typing! Realize you keep doing the same few steps? Just write a script instead of memorizing what specific sequence of buttons to click or hope that the GUI remembers where you left off! Need to tell a team member how to do something? Just send them the commands or a full script in chat instead of jumping on a video call and walking them through which of these abstract, indescribable icons they need to click which they’ll definitely get wrong and open some weird submenu you then have to tell them how to leave!

        GUI: Ooh a GPU and gigabytes of VRAM just for my animations? You shouldn’t have! Ooh you mouseovered something for one millisecond while moving it to the actual thing you want? Let me lag the entire window and cover up the thing you wanted with this popup that takes longer to disappear the more irrelevant it is! Also none of the text in mouseover popups is selectable so you can’t copy from it even if you did need it (Visual Studio static analysis messages I’m looking at you). Still need help? Well you first have to find where the help button is if there even is one! We’re increasingly not including help files because it “should” “just” be intuitive. Or just watch a 10 minute video walking through how to do something that could have been two lines in the terminal, stupid! Want to automate something that takes like ten clicks because we hid everything in nested submenus to “avoid clutter”? Go ahead and install a third party macro suite and record your mouse clicks and movements that will break as soon as the next update drops and slightly shift the margins around!

  • Karna@lemmy.ml
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    7 hours ago

    Thumb rule: whichever I feel comfortable with in a given situation, I use.

    • thingsiplay@lemmy.ml
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      edit-2
      1 hour ago

      TUI: Terminal Text User Interface, something like htop in example. CLI: Command Line Interface, something like grep in example.

      Edit: “Text” is probably the correct word, not “Terminal”.

      • Ferk@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        1 hour ago

        Isn’t the T for “text”? (ie. “Text User Interface”)

        I mean, in the context of Unix systems it’s most likely gonna be within a terminal emulator, but in theory you can have a TUI inside an SDL window rendering the text there (specially when they are ports from other systems where they might be using different character sets than whats available in terminals… or if they want to force a specific font).

        The only example that comes to my head right now is ZZT, but I believe there are many games on Steam that use a TUI rendered within their own program, not a terminal.

    • pnelego@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      8 hours ago

      It’s a UI that sits in the terminal (thus TUI). Think htop, or btop; They are often ran from CLI, but offer more of a UI.

      • Levi@lemmy.ca
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 hours ago

        Thanks! I guess something like vim would count as a TUI then.

        • Hawke@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 hours ago

          I’d say vi is in a fuzzy grey area below a tui. It’s more than a cli but shares a lot with cli programs; it pretty much has its own command line built in. At the same time it has nothing like dialog box or menus like normal tui programs.

          • Ferk@lemmy.ml
            link
            fedilink
            arrow-up
            3
            ·
            edit-2
            57 minutes ago

            Personally, I feel that if it uses control characters to update the screen in previous positions, altering the scroll buffer, moving beyond where the cursor is and redrawing the screen, then it’s a TUI.

            CLI programs only output plain text in a stream, using just control characters for coloring and formatting, and if they do any re-drawing it’s only for the current line (eg. progressbars and so).

            So… even something like less is a TUI program… but things like more or sed would be CLI programs.

        • thingsiplay@lemmy.ml
          link
          fedilink
          arrow-up
          4
          ·
          6 hours ago

          Yes. Think of any terminal application with an interactive user interface, that mimics a GUI. Something that is not just controlled by commandline options like grep and sed in example.

  • Ferk@lemmy.ml
    link
    fedilink
    arrow-up
    35
    ·
    edit-2
    14 hours ago

    I generally agree but it depends on the application and the computer purpose / input you will most use.

    Like… it doesn’t make much sense to have a CLI/TUI for an image editor… if you start using things like sixel you are essentially building a GUI that runs in a terminal, not a TUI. The same happens with videogames, video players and related entertainment applications.

    But like I said, I do generally agree. I’d even argue that when possible, GUIs should just be frontends that ultimately just call the corresponding CLI programs with the appropriate parameters, avoiding duplication.

  • hobata@lemmy.ml
    link
    fedilink
    arrow-up
    20
    arrow-down
    9
    ·
    13 hours ago

    well, actually nobody gives a shit, use whatever you fit best for the task.

    • fprefect@lemmy.ml
      link
      fedilink
      arrow-up
      10
      arrow-down
      3
      ·
      12 hours ago

      For me to be able to use whatever I want, it needs to exist. Therefore it is a relevant discussion to have, since it might influence a developer to consider TUI instead of just going for GUI as the default.

      • hobata@lemmy.ml
        link
        fedilink
        arrow-up
        6
        arrow-down
        6
        ·
        11 hours ago

        Waiting for others to do something for you is the wrong approach. Get off your ass and be the developer. Creating an interface for a tool is no rocket science.

        • HiddenLayer555@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          4 minutes ago

          It’s significantly easier to make a third party GUI for a command line tool than to make a third party CLI for a GUI only tool because you’ll be working with an opaque binary that doesn’t have any public APIs.

        • fprefect@lemmy.ml
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          2 hours ago

          Ironic coming from someone that is using a computer with OS and programs written by someone else and hardware constructed by other people, using electricity produced by others, et.c. :)

          • tomenzgg@midwest.social
            link
            fedilink
            English
            arrow-up
            1
            ·
            44 minutes ago

            Entirely unrelated to your point (with which I fully agree) but wouldn’t it make more sense to replace the first period in “et.c.” with just a space (if you’re not going to forego the period)? et isn’t short for anything so the period doesn’t quite make sense (and you wouldn’t be using any more letters than you already are).

            No worries, either way (obviously); I was just thinking.

          • hobata@lemmy.ml
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            2 hours ago

            You are completely missing the point of “Oh, mister developer sir, please, you absolutely must make me a button here so I can rename a file. I insist! I’ll even draw you a little spider in return.”

            • fprefect@lemmy.ml
              link
              fedilink
              arrow-up
              2
              ·
              1 hour ago

              I am a developer and I find others perspective on usability interesting. Each to his own I guess.

    • HiddenLayer555@lemmy.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 hours ago

      Pff, you’re using one of those newfangled CRTs? I use a mechanical teletype that makes my computing sound like hammering nails.

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    edit-2
    12 hours ago

    Also, GUI always has feature creep. The story would be different, if they would keep to the do one thing well principle of cli.

    Because there’s no convenient framework the user can just plop new functionality in, like shell is one.
    Well, there is, kinda. But webbrowsers are the antithesis to do one thing well.

    • Hawke@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      Someone has never configured a managed network router! Disorganized feature creep is the name of the game in there: gotta make sure the old commands still work exactly the same but add new ones constantly for new features!