Functional-style programming limits side effects and dependencies on mutable state. In testable designs, it keeps complex business logic independent of infrastructure so it can be tested quickly and deterministically. section 5.4.3 section 5.4.4
Use the style to make tests simpler and faster:
- Keep business logic free of dependencies so unit tests can run in memory instead of relying on heavyweight infrastructure. section 5.4.4
- Use dependency injection and test doubles for troublesome external dependencies; functional-style logic can then be tested without those dependencies. section 5.4.3 section 5.4.4





















