Recap
In this chapter, we saw how to write down the stories as acceptance tests that the computer can automatically verify, and we discussed why it’s important to do it before writing the actual code.
Then, we introduced one of the most important principles of good design: keep the domain logic separated from the infrastructure. We used the port and adapter pattern to do so, and we started operating on functions as data.
Last but not least, we looked at domain-driven tests and their advantages, and we rewrote the tests for our first story with the Pesticide library. We’ll keep writing DDTs all across the book before implementing any new feature.
In the next chapter, we’ll implement a new story and learn how to use higher-order functions to implement ...
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