---
title: "#dependency-injection articles | Hashnode"
description: "Explore 413 articles tagged #dependency-injection on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/dependency-injection"
---

Tag

# #dependency-injection

413 posts · 17 followers

[Xccelera AI](https://hashnode.com/@xccelera) · [Oct 19](https://hashnode.com/posts/mapping-legacy-dependencies-for-ai-assisted-code-migration/6ad5ff579f3e523662f9efce)

### [Mapping Legacy Dependencies for AI-Assisted Code Migration](https://xccelera.hashnode.dev/mapping-legacy-dependencies-for-ai-assisted-code-migration?utm_source=hashnode&utm_medium=feed)

Map hidden legacy dependencies before AI-assisted code migration to verify coupling, sequence the move safely, and add human review checkpoints.

5 min read · [xccelera.hashnode.dev](https://xccelera.hashnode.dev/mapping-legacy-dependencies-for-ai-assisted-code-migration?utm_source=hashnode&utm_medium=feed)

[ara-ta3](https://hashnode.com/@ara-ta3) · [Oct 15](https://hashnode.com/posts/dependency-injection-in-python-with-protocol-and-dependency-injector/6ad07dcade7292ff558d3834)

### [Dependency Injection in Python with Protocol and dependency-injector](https://ara-ta3.hashnode.dev/dependency-injection-in-python-with-protocol-and-dependency-injector?utm_source=hashnode&utm_medium=feed)

Use Python Protocol and dependency-injector to connect a service and repository, then test the service with mocks and a handwritten fixture.

6 min read · [ara-ta3.hashnode.dev](https://ara-ta3.hashnode.dev/dependency-injection-in-python-with-protocol-and-dependency-injector?utm_source=hashnode&utm_medium=feed)

[Mattia Carcione](https://hashnode.com/@xeno-js) · [Oct 1](https://hashnode.com/posts/xeno-js-vs-nestjs-different-approaches-to-typescript-application-architecture/6abe8d6dcb5b3e74131062e7)

### [Xeno.JS vs NestJS: Different Approaches to TypeScript Application Architecture](https://xeno-js.hashnode.dev/xeno-js-vs-nestjs-different-approaches-to-typescript-application-architecture?utm_source=hashnode&utm_medium=feed)

Looking for a NestJS alternative? Compare Xeno.JS and NestJS for TypeScript application architecture, dependency injection, CQRS, pipelines, HTTP, and transport independence.

10 min read · [xeno-js.hashnode.dev](https://xeno-js.hashnode.dev/xeno-js-vs-nestjs-different-approaches-to-typescript-application-architecture?utm_source=hashnode&utm_medium=feed)

[Onkesh Gupta](https://hashnode.com/@onkeshgupta) · [Sep 1](https://hashnode.com/posts/solid-principles-simplified-5-dependency-inversion-principle/6a96c70667ee31ea285945ef)

### [SOLID Principles Simplified #5: Dependency Inversion Principle](https://onkeshgupta.hashnode.dev/solid-principles-simplified-5-dependency-inversion-principle?utm_source=hashnode&utm_medium=feed)

Why does changing my email service break my entire notification system?

8 min read · [onkeshgupta.hashnode.dev](https://onkeshgupta.hashnode.dev/solid-principles-simplified-5-dependency-inversion-principle?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/solid-principles-simplified-5-dependency-inversion-principle/6a96c70667ee31ea285945ef)

[Coding Droplets](https://hashnode.com/@codingdroplets) · [Aug 29](https://hashnode.com/posts/unable-to-resolve-service-for-type-aspnet-core/6a92c9ca343d379498f61bb2)

### [Unable to Resolve Service for Type in ASP.NET Core: Causes and Fixes](https://codingdroplets.hashnode.dev/unable-to-resolve-service-for-type-aspnet-core?utm_source=hashnode&utm_medium=feed)

Fix the ASP.NET Core Unable to Resolve Service for Type error fast. The 7 real causes, the exact fix for each, and how to stop it recurring.

11 min read · [codingdroplets.hashnode.dev](https://codingdroplets.hashnode.dev/unable-to-resolve-service-for-type-aspnet-core?utm_source=hashnode&utm_medium=feed)

[David Mkrtchian](https://hashnode.com/@davidmcarati) · [Aug 13](https://hashnode.com/posts/eighty-lines-instead-of-a-container/6a7d371d5dffa7ffd0ebaf97)

### [Eighty Lines Instead of a Container](https://boundarylayer.hashnode.dev/eighty-lines-instead-of-a-container?utm_source=hashnode&utm_medium=feed)

Our Unity WebGL build resolves its services through a static locator — the textbook anti-pattern. Here is the derivation that got us there, and why I think the derivation matters more than the answer.

12 min read · [boundarylayer.hashnode.dev](https://boundarylayer.hashnode.dev/eighty-lines-instead-of-a-container?utm_source=hashnode&utm_medium=feed)

[qodors](https://hashnode.com/@qodors) · [Jul 1](https://hashnode.com/posts/dependency-injection-in-net-is-easy-to-get-wrong/6a44e2cf318e141e87267448)

### [Dependency Injection in .NET Is Easy to Get Wrong](https://qodors.hashnode.dev/dependency-injection-in-net-is-easy-to-get-wrong?utm_source=hashnode&utm_medium=feed)

Why the wrong lifetime causes stale data, shared state, and memory leaks — and how to pick the right one

6 min read · [qodors.hashnode.dev](https://qodors.hashnode.dev/dependency-injection-in-net-is-easy-to-get-wrong?utm_source=hashnode&utm_medium=feed)

[Vlad Shulcz](https://hashnode.com/@vshulcz) · [Jun 18](https://hashnode.com/posts/python-dependency-injection-130x-faster/6a33c0fa3b3dfcc00bd12037)

### [How I made dependency injection in Python 130× faster: from reflection to compiling the graph](https://vshulcz.hashnode.dev/python-dependency-injection-130x-faster?utm_source=hashnode&utm_medium=feed)

From ~53 µs/op to 0.40: caching the plan, cutting a check that can't fire, and compiling the dependency graph — a number at every step.

8 min read · [vshulcz.hashnode.dev](https://vshulcz.hashnode.dev/python-dependency-injection-130x-faster?utm_source=hashnode&utm_medium=feed)

[Coding Droplets](https://hashnode.com/@codingdroplets) · [Jun 18](https://hashnode.com/posts/timeprovider-aspnet-core-enterprise-decision-guide/6a33f6421c6cbb90fa9ff8af)

### [TimeProvider in ASP.NET Core: Enterprise Decision Guide](https://codingdroplets.hashnode.dev/timeprovider-aspnet-core-enterprise-decision-guide?utm_source=hashnode&utm_medium=feed)

Learn when to use TimeProvider in ASP.NET Core, key patterns, trade-offs, and how FakeTimeProvider eliminates flaky time-dependent tests.

10 min read · [codingdroplets.hashnode.dev](https://codingdroplets.hashnode.dev/timeprovider-aspnet-core-enterprise-decision-guide?utm_source=hashnode&utm_medium=feed)

[Coding Droplets](https://hashnode.com/@codingdroplets) · [Jun 13](https://hashnode.com/posts/adddbcontext-vs-adddbcontextpool-vs-adddbcontextfactory/6a2cc31be845b7e96dd5a565)

### [AddDbContext vs AddDbContextPool vs AddDbContextFactory in ASP.NET Core: Which to Use in 2026?](https://codingdroplets.hashnode.dev/adddbcontext-vs-adddbcontextpool-vs-adddbcontextfactory?utm_source=hashnode&utm_medium=feed)

Three Ways to Register DbContext — and Why the Choice Matters Every ASP.NET Core application that uses Entity Framework Core has to answer the same registration question at startup: AddDbContext, AddD

11 min read · [codingdroplets.hashnode.dev](https://codingdroplets.hashnode.dev/adddbcontext-vs-adddbcontextpool-vs-adddbcontextfactory?utm_source=hashnode&utm_medium=feed)
