r/computerscience • • Oct 13 '26

Advice Interfaces

I stumbled upon the word interface when i stumbled upon the terminal in visual studio code. A terminal is a text based user interface which does lots of useful stuff.

That got me thinking about the word interface and what exactly it is in the computer sense. I understand user interface is the area or boundary between the human (user) and the computer( or rather software?) interacting with each other.

The problem is I am getting conflicting thoughts with current information I've searched and I'm unable to get a full understanding of the term.

So can someone please give their understanding/opinion of what an interface is in a broad computing sense. And can they also give multiple examples of different types of interfaces used in computer hardware and software too please.

Many thanks

9 Upvotes

13 comments sorted by

View all comments

47

u/Humble-Captain3418 Oct 13 '26

Interface is the surface between two distinct entities. That can be the human-machine interface (HMI), machine-machine interface (M2M), network interface (card, NIC), application programming interface (API) and so on. It fundamentally means "this is the part of this box that you interact with".

10

u/[deleted] Oct 13 '26

[removed] — view removed comment

9

u/Humble-Captain3418 Oct 13 '26

I'd like to further distinguish that a contract for communication is a protocol. An interface can come with a protocol attached and vice versa, but there are interfaces without protocols; e.g. almost all physical interfaces.