Event-driven programming

Updated: 06/16/2017 by Computer Hope

event driven programmingEvent-driven programming is a computer programming paradigm in which control flow of the program is determined by the occurrence of events. These events are monitored by code known as an event listener that, if it detects that its assigned event has occurred, runs an event "handler", typically a callback function or method. This handler deals with the event by responding to it with program code.

In theory, all programming languages support the event-driven style of programming, although some language features, such as closures, make it easier to implement. Other programming environments, such as Adobe Flash, are specifically tailored for triggering program code by events.

Paradigm, Programming terms