modules - mmedrano9438/peripheral-brain GitHub Wiki

A module is a function or group of similar functions. They are grouped together within a file and contain the code to execute a specific task when called into a larger application. You create modules to better organize and structure your codebase.

Modules should be:

  1. Independent/Self-contained: A module has to be as detached from other dependencies as possible.

  2. Specific: A module needs to be able to perform a single or a related group of tasks. The core essence of creating them in the first place is to create separate functionalities. One module, one (kind of) task.

  3. Reusable: A module has to be easy to integrate into various kinds of programs to perform its task.