Summary
In this chapter, you improved the design of iloveyouboss, leaning mostly on a couple of simple design concepts for guidance: the SRP and command-query separation. You owe it to yourself to know as much as possible about these and other concepts in design. (Take a look at Clean Code [Mar08], for example, but keep reading.) And don’t forget what you learned in Chapter 8, Refactoring to Cleaner Code: small, continual code edits make a big difference. Armed with a stockpile of design smarts, your unit tests will allow you to reshape your system so that it more easily supports the inevitable changes coming.
Your system’s design quality also inversely correlates to your pain and frustration level. The worse your design, the longer it will ...
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