Library

Noun · Development

Definitions

  1. A library is a collection of pre-written, reusable code, including functions, classes, and modules, that developers import into their own projects to handle common tasks without writing everything from scratch. Libraries differ from frameworks in a key way: with a library, your code calls the library's functions (you remain in control), whereas a framework calls your code (inversion of control). Examples span every domain, from utility libraries like Lodash and Apache Commons to specialized ones like NumPy for numerical computing, React for UI components, and OpenSSL for cryptography. Libraries are distributed through package managers (npm, pip, Maven) and versioned with semantic versioning to manage compatibility across projects.

    In plain English: Pre-made code that someone else wrote and shared so you don't have to build everything from scratch.

    Example: "Why write your own date parser? There's a library for that. There's always a library."

Related Terms