Local reasoning determines a computation’s behavior from what it visibly receives and returns. Functions that take their dependencies as arguments avoid reconstructing surrounding instance state, services, and hidden mutations before their business logic becomes understandable. section 6.1.4
Local reasoning changes both implementation and testing:
- Read behavior as a mapping from supplied inputs to returned outputs rather than as a consequence of widely distributed state. section 6.1.4
- Test by crafting inputs and asserting expected outputs, reducing complicated setup, teardown, mocking, and subtle state orchestration. section 6.1.4
Figure 6.3 Everything we need to know is in one spot

Use the figure to contrast behavior scattered across surrounding state with behavior whose required information appears in one place. section 6.1.4

