Glossary coding Term Page
Dependency injection
Receiving required resources from outside the function instead of instantiating them yours
Core Idea
Dependency injection is Receiving required resources from outside the function instead of instantiating them yourself. Prevents repeating authentication or DB boilerplate. It usually makes the most sense alongside Request scope, Sub-dependency, Bearer token.
Why It Matters Here
Mathbong reuses this term across fastapi posts as shared vocabulary.