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

Show parent comment

1

u/o4ub Computer Scientist Oct 13 '26

I use the same definition. An interface is a contract where the entity providing the interface defines what can be done, what services is proposed and what information is required to provide for it to work properly.

For a command line interface, it means what are the commands you are allowed to enter, what are the options you can apply to each.

For an application programming interface, it means what are the functionality your library offers, and what data it will use.