Discerning Intent
We did a couple of things in this chapter. The obvious one is that we took a common—although sometimes controversial—design pattern and broke down how to test it while preserving the essence of its intent. More importantly, though, we recognized that some of the patterns we have been taught to use without question require closer inspection to test. To take this a step further, using accepted design patterns idiomatically—as a chunk6 or out of habit—at a minimum complicates your testing—perhaps unnecessarily—and can unintentionally entangle concerns.
6. “Chunking” is a concept in the study of second-language acquisition. Effective language learners acquire “chunks,” or sequences of words, as a unit rather than limiting their ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access