Chapter 4. Functional patterns for domain models
This chapter covers
- Understanding functional design patterns and how they differ from OO design patterns
- Algebra as patterns
- Using monoids, the ubiquitous design pattern in functional programming
- Working with patterns for programming with effects—functors, applicatives, and monads
- Two use cases from the field that use types, algebra, and patterns to build domain models with better abstraction
The preceding chapter introduced the technique of algebraic API design and how you can think of composition of APIs before you have any implementation in your workspace. From now on when we talk about API design, we’ll focus on the algebra first. In this chapter, you’ll start finding patterns within ...
Get Functional and Reactive Domain Modeling now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.