Libraries and APIs
Programmers rarely build everything from scratch. A library is a collection of prewritten, reusable code, often already tested by others, such as functions for math, random numbers, graphics, or data analysis, that you can import and use in your own program. An API (application programming interface) describes exactly how a program can interact with a library or service: which functions or requests are available, what inputs they take, and what they return. For example, a weather app might request the forecast from a weather service's API and display the data it returns. Using libraries and APIs can save time and let you build on code that others have often already tested, but it requires reading the documentation carefully, and it brings responsibilities and risks: checking the license, keeping dependencies updated for security, handling errors when a service is unavailable, and adapting when an API changes.
This explanation is AI-generated and can occasionally be wrong.
Vibistic AI
🔒 We never store your messages. The free built-in AI runs through Vibistic's own server, on Cloudflare's own AI infrastructure. You can also add your own API key to send messages straight from your browser to your AI provider instead.
Your notes
Test your knowledge
This test is AI-generated and can occasionally be wrong. If something looks off, use Report below.
No API key configured yet. Clicking below will ask whether to add one or take a free version of this test when one is available.