A self-contained unit of code that encapsulates related functions, classes, and variables, designed to be reused across different parts of a program or in other programs. Modules promote code organization, reusability, and maintainability.
From Latin 'modulus' meaning small measure or standard unit. Architecture used the term to describe standardized building components. Computing adopted it in the 1960s to describe standardized code units that could be combined to build larger programs, maintaining the concept of interchangeable standardized parts.
Modules are like LEGO blocks - each block (module) has a specific purpose and can connect to other blocks in predictable ways. You can build a castle, a car, or a spaceship by combining different modules, and you can even take blocks from one creation to use in another!
Complete word intelligence in one call. Free tier — 50 lookups/day.