Hacker News new | ask | show | jobs
by Vegenoid 650 days ago
One of the biggest benefits of a (good) TUI (or GUI) is that it guides someone who doesn't already know exactly what they want to do towards the most relevant information and the most common actions. Once you already know these things, it is usually faster and more powerful to work with code instead. With this TUI, someone who doesn't know very much about the internals of a binary gets that information presented them in a way that helps them learn the parts of the file, and their relations and relevance.

It is also easier for many people to remember how to navigate a GUI/TUI to achieve a task than to use the CLI, likely because it makes use of the parts of our brain for navigating space. This often makes them easier to use for tasks that you only do occasionally (at least until you learn how to take good notes, manage snippets, and work with your shell history).

So why a TUI instead of a GUI? Probably mostly for aesthetic and comfort reasons than for utility reasons - but I prefer staying in the terminal if possible, as I have a lot of control over its appearance and behavior, and TUIs generally have much better keyboard support than GUIs.

4 comments

> So why a TUI instead of a GUI? Probably mostly for aesthetic and comfort reasons than for utility reasons - but I prefer staying in the terminal if possible, as I have a lot of control over its appearance and behavior, and TUIs generally have much better keyboard support than GUIs.

Also it is much easier to run remotely and doesn't need half a gigabyte of dependencies making it easier on a VPS etc

> It is also easier for many people to remember how to navigate a GUI/TUI to achieve a task than to use the CLI, likely because it makes use of the parts of our brain for navigating space

I'd be very very surprised if this were true for everyone. I'm certainly more symbol oriented than visually or spatially oriented, for instance, and the ways I AM spatially oriented doesn't map at all to common user interface elements.

Besides, many of the best interfaces (eg magit) aren't spatially oriented at all.

That said, I'll never complain at more interfaces even if I do prefer a query-and-response style interaction.

Great reply about TUI/GUI vs CLI! Well-designed TUIs help teach and navigate the mental model of a situation. I try to also have a CLI available for the TUI that helps extract data for terminal pipeline use. You can even have the TUI tell you what the CLI command would be.

> So why a TUI instead of a GUI?

Also, TUI is available in constrained environments and over SSH/serial.

NB: the author's GitHub contribution graph is pure green for several years! https://github.com/orhun

You can even have the TUI tell you what the CLI command would be.

Most of the weird corners I know about Git workflows are because Magit offers the ability to explore via TUI but then see the literal command being run.

does this offer a programming api? what I think is the sweetest approach is if there's a tui/gui to explore and find what you want, and then click a button and have it dump a bunch of code that would achieve the same thing - so now you can play around with the api instead.