October 2019
Beginner to intermediate
498 pages
14h 13m
English
So far the programs we have written have a beginning, a middle, and an end. We know the order in which things will happen because we have implemented the steps in a linear fashion. But that is not the way that most programs work. Think of the programs that you use on a daily basis—from your web browser and word processor to video games. These programs do not have a beginning, a middle, and an end. Instead, they sit there and wait for you to click your mouse, touch your screen, or press a key. When you take some action, the program responds with its own action. The order of the actions is determined by you, not the program.
Programs that wait for an event to occur and then respond to that ...
Read now
Unlock full access