API vs UI
→ UI (User Interface) is for Users 👩🧑 - Interface like visual cues, buttons, keyboard shortcuts
→ API (Application Programming Interface) is for programs 💻 🤖 - Interface like systems, modules, programming languages, standards, protocols
How an API is developed and used
console.log
on the browser than going through Google Chrome dev tool's code and figuring out how to hack it and print a textSome examples:
A class Dog
that you wrote has APIs: bark()
eat()
, ... that the users of this class can call
Express API specifies how we use express: creating an app, using the request and response object, etc
Services you love has Public APIs that allow you to integrate: Google, Facebook, Twitter, Spotify, ...
Gadgets like Fitbit, Oculus VR headset, LEAP motion has a great set of APIs so we can interface with them quickly
Node and your browser exposes the Console API, so we can do console.log(123)
The OS you use (Windows, Linux, Mac) allows you to configure things via the command-line/terminal
The browser's HTML DOM API allows you to manipulate and change elements