May 2018
Intermediate to advanced
512 pages
11h 3m
English
In Event-Driven programming, you would define an event handler and attach it to an event source. In more concrete terms, if you had a save button, which exposes an onClick event, you would implement a confirmSave function, which when triggered, would show a popup to ask the user Are you sure?. Look at the following figure for a visualization of this process.

In short, you would have an event firing once per user action. If the user clicks on the save button many times, this pattern would gladly render as many popups as there are clicks, which doesn't make much sense.
The publish-subscribe ...
Read now
Unlock full access