Most people initially judge an application by how it presents its features, rather than by the features themselves. Many users focus on the user interface, and a program with fewer features can sometimes be received more positively simply because its interface is simpler and more intuitive. Half jokingly, we could compare Windows Notepad with Vim on Linux. The former is simple, as intended, while the latter offers more features and extensions but is much more complicated to use.

Many nontechnical people are surprised when someone discussing a user interface questions whether it needs to be graphical. "Of course it does. What else could it be?" In most cases, another option is indeed out of the question. But "user interface" does not automatically mean "graphical." In fact, an "interface" does not necessarily involve a "user" at all. Let's look at the types regularly used in applications.

Graphical user interface (GUI)

For web applications, mobile apps, and most desktop applications, users clearly expect to select options visually, enter and view data conveniently, and operate the software using a keyboard, mouse, or finger. We will return to that last option shortly. This requires designing and implementing a graphical user interface (GUI).

For most people, this is the natural way to navigate a computer system. We can move forward or back, receive notifications through pop-up windows and colors, and see data in tables, columns, or icons. We can also display images and video this way. Listing all the advantages is difficult because, for the average person, this is simply the natural way to present information on a computer screen, developed over many years. A graphical interface can also impress a potential customer or simplify many operations. There is a reason server control panels such as cPanel, Plesk, and others, including cloud-based ones, exist: they let less technical users work with a server. Even Kubernetes, a container orchestration tool, can be operated from either the command line or a graphical interface.

We need not look far for examples. Consider Windows, Linux, and macOS. Microsoft's Windows is practically the definition of a graphical user interface and is consequently associated with ease of use, whether rightly or wrongly. That helped it reach computer users' homes around the world. Linux is not far behind, appearances notwithstanding. It is associated with the console and greater difficulty, yet it also offers configurable GUIs such as KDE, GNOME, Xfce, and others. Meanwhile, macOS is considered almost outrageously intuitive thanks to its interface, which conceals Unix underneath, the same system from which Linux evolved.

To make things more interesting, let's consider the disadvantages of graphical user interfaces, because they do have some. First, they are "heavier" and do not run equally well on every computer. Additional GUI components, including more running system processes, can cause hangs or screen freezes. People who work extensively with files may also find a console interface much better for frequent disk operations. GUIs are harder to script, for example to test an operation automatically, and using a mouse for certain actions is simply slower than working with a keyboard alone.

As a side note, there is also the HUD, or Heads-Up Display, a term mostly associated with video games. This is certainly not a synonym for GUI. It is more like the part that stays overlaid on the screen and shows the user various statistics. Even that definition has loosened somewhat, since some shooters display the HUD in 3D, for example on a screen built into the weapon being held.

One more thing: input is not limited to keyboards and mice. We can also navigate a graphical interface using the somewhat forgotten joystick or trackball, gamepads, which gamers particularly appreciate, and inventions such as the TrackPoint, the little red pointing stick on Lenovo ThinkPad laptops.

Touch interface

A touch interface is actually a subset of a graphical one, but it follows its own rules and is considered more natural, so it could equally belong to a later category. This makes sense: removing the keyboard or mouse takes away one barrier between a person and a machine. When introducing the first iPhones, Steve Jobs himself emphasized that using a finger was a major step in interface design. It is worth mentioning that he was contrasting this with another way of using touchscreens: the stylus.

We mostly associate touch controls with smartphones and other mobile devices without physical keyboards, where the screen occupies almost the entire available surface. This gives us a greater sense of control and convenience, since one finger is often enough to scroll a page, press a button, or move a file. Sometimes we need not even take the other hand out of a pocket. This approach is so intuitive that some laptops already offer it as an additional interface. We also encounter it in shopping malls, where a touchscreen can show us how to reach a store, or at a fast-food restaurant when ordering a meal.

Touch interfaces have more depth than we might initially think, as laptop touchpads demonstrate. Beyond a single "tap," several fingers can perform an operation through gestures. Apple devices lead in this area, but many combinations are now available from other manufacturers too.

Finger-operated interfaces are closely associated with mobile devices. That means considering responsive design and recognizing that operations that are easy with a mouse may be harder to implement or use on a touch device. Tooltips, hover highlights, and some controls are prime examples from my experience.

Command-line interface (CLI)

Some may find it hard to believe, but certain people genuinely prefer using a computer exclusively through a keyboard, watching white letters on a black screen. A greeting here to a university friend who set a pink Bash background on every lab computer she used. In some situations, this is even the only way to control a computer, primarily on Linux servers.

I am talking about the Command Line Interface, or CLI: entering commands in a terminal. We might also casually call it a console or text interface, though "command line" is more precise. There are no icons, clicks, or dragging. Instead, we have program names, arguments, switches, pipes, and similar tools. Many operations are also available through a GUI, but some can be performed in only one of the two environments.

What some people may not realize is that the console can be very convenient and faster in certain situations, such as deleting, copying, or moving many files. Command completion also makes many tasks more efficient. Commands can be placed in scripts to automate repeated work or tasks requiring complex combinations of options and arguments. The console often offers more possibilities because no GUI needs to be designed for them, including the placement of more buttons or icons. Adding support for a new parameter or program is enough. That is why text editors such as Vim and Emacs are so powerful, despite being terribly awkward to use. We can also have multiple terminals, each running a different command, and perform several operations at once. This relates to running commands in the background too, but that would take us too deeply into operating systems, which is not this article's subject.

The console, particularly Bash, is mainly associated with Linux, even though Linux certainly offers GUIs. Windows also provides one: Command Prompt, or CMD, used for the command line. There is also a more powerful option in PowerShell. Additional programs make working with commands on Windows much more pleasant, such as Windows Terminal, which can be used for more than WSL.

The drawbacks are obvious: difficulty for inexperienced users, and the fact that this is not an approach we would readily implement in web and mobile applications, where it would simply be inconvenient and even harder to use than a GUI. Then there are users' habits. Imagine opening a website on your phone and having to type commands on the on-screen keyboard. This interface can, however, suit data integration, periodic operations, and auxiliary tools for other technical teams. There is another interface for that too, which we will discuss next.

Application programming interface (API)

There is much more to say about APIs, or Application Programming Interfaces, and we have done so before. But yes, this is absolutely an interface. It is closer to a console interface than a graphical one, though its distinguishing feature is that it is usually invoked by a developer rather than an end user, or more precisely by an application written by that developer. It acts as a gateway to specific functionality provided by an API or a library written for other programs. Which brings us to another point.

APIs extend beyond web services accessed through HTTP calls. Libraries that can be included in an application are another way to access code that makes other developers' work easier. Popular programs such as VS Code and Discord also provide APIs for writing plugins or custom extensions. You could point out that this is not quite an end-user interface, and that is true. The developer can nevertheless be considered a user of the API.

Natural interfaces and interfaces of the future

We have already mentioned touch interfaces, an important step toward closer integration between people and machines, however futuristic that may sound. They are an example of a natural interface, one that uses parts of the human body to "talk" to a computer or another electronic device. They are not the only example, of course, although currently the most accessible.

Other approaches include Augmented Reality (AR) and Virtual Reality (VR), which let users practically enter an application and issue commands from inside it. That is more accurate for VR, since AR is a little different. Motion interfaces, such as Kinect, have long let us remain in our own world while controlling an application. These solutions start to resemble the devices shown in science-fiction or cyberpunk films. Reality has not caught up with fiction yet, but such a futuristic interface is theoretically possible and can certainly help promote software. On the other hand, it is also much more expensive, harder to implement, and less sensitive at the current stage of development.

Other interfaces

Other interfaces already available include dance mats, musical instruments such as the Guitar Hero guitar, and gadgets such as Ring Fit, alongside the joysticks and gamepads mentioned earlier. As you can see, these are mostly associated with games rather than business and utility applications.

Remember that people once communicated with machines using punched cards and similar media. Computing has clearly made enormous progress since then. Let's appreciate that and remember it when complaining that a website button responded after 0.2 seconds instead of the 0.1 seconds we expected.

Interfaces beyond the user interface

The word "interface" has more meanings than the way a user controls an application. There are also hardware interfaces, although we do not usually call them that: Ethernet, USB, HDMI, FireWire, and other everyday connections. They are certainly interfaces, but here devices communicate with each other to transfer data. Interfaces must match: you cannot plug an Ethernet cable into a USB port. They can, however, be backward compatible, allowing a USB 2.0 cable to connect to a USB 3.0 port, for example.

Programmers also know interfaces from object-oriented programs. These constructs provide only method signatures. Other classes can implement them, which means those signatures must be given fully functioning method bodies. This makes an interface similar to an abstract class, except that it provides no implementation itself, while one concrete class can use multiple interfaces.

A final word

Two points are worth mentioning at the end. First, UI, or User Interface, differs from UX, or User Experience. We explained this in more detail in our article on GUI prototyping and wireframing.

The second concerns the Polish word "interfejs," borrowed from English, which irritates stricter language purists, as do other borrowings from the language of Shakespeare. The term is so well established, though, that there is no need to replace it. I doubt anyone seriously considered putting "międzymordzie," a literal joke translation roughly meaning "between faces," into circulation.

As you can see, a user interface need not be graphical, although it usually is. The word has many more meanings, however, so there is no reason to be alarmed or surprised when someone mentions a console or an API.

Best regards, and thank you. Jakub Rojek.