codeunit

noun
UK /ˈkəʊdˌjuːnɪt/
US /ˈkoʊdˌjuːnɪt/

A codeunit is a small building block of computer code that does one job.

The programmer wrote a codeunit to add two numbers together.


OTHER MEANINGS

2. A basic unit of measurement for the size of a computer program.

The app grew by a few codeunits after the update.

3. A single step or instruction in a coded message.

Each codeunit in the secret message stood for one letter.

4. A self-contained piece of code that can be reused in many programs.

She saved the login codeunit so other apps could use it.