self-contained code

noun phrase
UK /ˌself kənˈteɪnd kəʊd/
US /ˌself kənˈteɪnd koʊd/

Code that has everything it needs inside it to work on its own.

The teacher said our game was self-contained code because it ran without any extra files.


OTHER MEANINGS

2. Code that does not need other programs or libraries to run.

He wrote self-contained code so the app would work on any computer.

3. A single file that holds all the parts of a program together.

The whole calculator was self-contained code in one file.

4. Code that keeps its data and actions inside itself and does not rely on outside help.

Her robot's self-contained code let it move without asking another program for help.