Skip to content

Glossary: Software Design Patterns

Constructor injection

Passing an object its dependencies through `__init__` so it keeps them for its whole life. `OrderLog(repo, clock, notifier)` does this.

Where the book teaches it

Related terms

Dependency injectionDependency