January 2019
Intermediate to advanced
320 pages
9h 18m
English
This chapter covers
During the course of this book, we’ve tackled a few problems the program state introduces. You’ve seen how to design software without mutable state and how to implement data structures that are efficient to copy. But we still haven’t dealt with all the problems of program state: we haven’t covered unexpected or invalid states.
Consider the following situation. Suppose you have an application that counts the total number of words on a web page. The program can start counting ...
Read now
Unlock full access