self-changing code

noun
UK /ˌself ˈtʃeɪndʒɪŋ kəʊd/
US /ˌself ˈtʃeɪndʒɪŋ koʊd/

Computer code that can change itself while it is running.

The toy robot uses self-changing code to learn new dance moves.


OTHER MEANINGS

2. Code that rewrites parts of itself to fix bugs automatically.

The app's self-changing code patched the error without anyone clicking update.

3. A program that adjusts its own instructions based on what it senses.

The game's self-changing code made the enemy harder when the player got too good.

4. Code that updates its own settings to run faster on different computers.

Thanks to self-changing code, the same game ran smoothly on both old and new laptops.