Event-driven programming can also be defined as an application architecture technique in which the application has a main loop which is clearly divided down to two sections:
⁕the first is event selection
⁕the second is event handling.
In embedded systems the same may be achieved using interrupts instead of a constantly running main loop; in that case the former portion of the architecture resides completely in computer hardware. Event-driven programming is similar to data-driven programming, in that both are structured as pattern matching and resulting processing, though they are typically applied to different domains.
Event-driven programs can be written in any language, although the task is easier in languages that provide high-level abstractions, such as closures.
Driven Reviews & Ratings
No Reviews / Ratings Yet