November 2018
Intermediate to advanced
346 pages
8h 12m
English
The answer to the question of why your users would want to use your code could be long and varied. If it is, you might want to go back and re-read the SRP section. Beyond being able to split the code into smaller, more concise chunks, we need to make a list. We will apply the 80/20 rule to this list. Typically, 80% of usage comes from 20% of the use cases. Let me put this into perspective with an example.
Consider an automated teller machine (ATM). A list of its use cases might look like the following:
I reckon that on at least 80% of the occasions that a person uses an ATM, their purpose is to withdraw money. So ...
Read now
Unlock full access