November 2015
Intermediate to advanced
304 pages
5h 23m
English
IX
In all styles seen before, except the Lazy Rivers style in Chapter 27, the program takes input in the beginning, processes that input, and shows information on the screen at the end. Many modern applications have that characteristic, but many more have a very different nature: they take input continuously, or periodically, and update their state accordingly; there may not even be an "end of the program" as such. These applications are called interactive. Interaction may come from users or from other components, and it requires additional thought on how and when to update the observable output of the program. The next two chapters show two well-known styles for dealing with interactivity.
Read now
Unlock full access