event-driven programming
nounA way of writing computer programs where the program waits for things to happen, like a mouse click or a key press, and then reacts to them.
The game uses event-driven programming so the character jumps only when you press the space bar.
SYNONYMS
OTHER MEANINGS
2. A coding style where actions are triggered by user or system events rather than running in a fixed sequence.
In event-driven programming, clicking a button runs a function instead of following a step-by-step script.
3. A software design approach common in graphical interfaces and web apps that respond to inputs as they occur.
Modern web apps often rely on event-driven programming to update the page without reloading.
4. A programming model where the flow of the program is determined by events such as sensor signals or messages.
The smart home system uses event-driven programming to turn on lights when motion is detected.