Skip to content

Glossary: Refactoring and Clean Code

dependency injection

Passing in what code needs, such as a date or an email sender, instead of having the code create it. This lets a test supply fixed or fake versions.

Where the book teaches it

Related terms

Seammonkeypatch