Best of Dependency InjectionJuly 2024

  1. 1
    Article
    Avatar of communityCommunity Picks·2y

    Dependency Injection made simple.

    Dependency Injection simplifies handling dependent objects, making code more flexible and decoupled. In JavaScript, passing connection objects through constructors exemplifies this. For strongly typed languages like C# and Java, interfaces help enforce consistent structures. This approach enhances code management and testing.

  2. 2
    Article
    Avatar of milanjovanovicMilan Jovanović·2y

    Building Your First Use Case With Clean Architecture

    Learn how to design a user registration feature using Clean Architecture principles, focusing on the dependency rule to decouple business logic from external dependencies. Clean Architecture emphasizes separation of concerns, making systems more maintainable and testable. The practical guide covers defining use cases, managing dependencies, handling race conditions, and updating hashing algorithms.

  3. 3
    Article
    Avatar of csharpcornerC# Corner·2y

    Strategy Pattern in .NET 8.0 Minimal API with Dependency Injection

    Explore how to implement the Strategy pattern in .NET 8.0 using Minimal API and dependency injection. Learn to create a flexible and maintainable payment processing system by encapsulating multiple payment method algorithms, defining a strategy interface, implementing concrete strategies, setting up payment context, configuring the Minimal API with dependency injection, and testing the endpoint.