September 2023
Intermediate to advanced
470 pages
11h 12m
English
Let’s consider for a moment how the hub can delegate access to external resources—in other words, how we can inject functions inside the hub to allow the domain to communicate with the external services.
Dependency Injection | |
|---|---|
|
|
Dependency injection is an important principle of good design, not only in object-oriented programming, but also in functional programming. If our code needs to use some external dependencies, it should avoid creating them directly, and it should receive them from outside instead. |
Keeping the creation of external dependencies separated from their usage allows us to keep our code more ...
Read now
Unlock full access