The term event-driven programming is pretty self explanatory; it is programming that is driven by events. But it becomes a little tough to actually figure out what that means. I think Wikipedia sums it up nicely: “In computer programming, event-driven programming is a programming paradigm in which the flow of the program is determined by events such as user actions (mouse clicks, key presses), sensor outputs, or message passing from other programs or threads.”
Source: www.geeksforgeeks.org
Basically, the main loop picks senses an event and then triggers a response to the event. A simple way to look at it is to think of it as an input-output loop; when something specific comes in, something specific goes out.
One benefit to this method of programming is that it can be flexible. But it can be slow and complicated.
Hey Sarah, I really enjoy your blog posts. I feel they are very well written and easy to understand. the pictures you incorporated were also very simply and not too descriptive so it was easy to follow you.