• Randelung@lemmy.world
    link
    fedilink
    arrow-up
    35
    arrow-down
    4
    ·
    4 days ago

    CLI is effective because every command serves a specific purpose. UIs are the opposite, you have to imagine all possible intentions the user could have at any given point and then indicate possible actions, intuitively block impossible actions, and recover from pretty much any error.

    • utopiah@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      4 days ago

      CLI is effective also because of its history (i.e. one can go back, repeat a command as-is or edit it then repeat) but also the composability of its components. If one made a useful command before, it can be combined with another useful command.

      Rinse & repeat and it makes for a very powerful tool.

      • stetech@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        edit-2
        4 days ago

        The Unix principle of piping between two or even multiple programs, together with “all data should be in the simplest common format possible” (that is, largely unformatted strings), was a really clever invention to be popularized. As proven by the fact it is still so useful decades later on a myriad of computers unimaginably more powerful than what they had back then.

        It’s not perfect by any means (alternative title: why something like Nushell exists), but it’s pretty good all things considered I dare say.

        • utopiah@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          4 days ago

          Absolutely. I learned about that decades ago as a teenager and never would I have thought it would still be useful today… yet, in 2025 if you want to do anything powerful, in the cloud, on your phone, even in your XR headset, it is STILL relevant!

          PS: I project I’m contributing to on the topic https://nlnet.nl/project/xrsh/ ideas welcomed!