A module can refer to different things depending on the context. Here are some definitions of a module:
-
Computer hardware: A module is an assembly of parts designed to be added and removed from a larger system easily. An example of a hardware module is a stick of RAM.
-
Computer software: A module is an extension to a main program dedicated to a specific function. In programming, a module is a section of code that is added in as a whole or is designed for easy reusability.
-
Architecture and furniture: A module is any in a series of standardized units for use together. For example, a unit of furniture or architecture.
-
Mathematics: In mathematics, a module is a generalization of the notion of vector space in which the field of scalars is replaced by a ring. The concept of module generalizes also the notion of abelian group. Like a vector space, a module is an additive abelian group, and scalar multiplication is distributive over the operation of addition between elements of the ring or module and is compatible with the ring multiplication).
In general, a module is a distinct assembly of components that can be easily added, removed, or replaced in a larger system.