Best of Dependency InjectionApril 2024

  1. 1
    Article
    Avatar of towardsdevTowards Dev·2y

    Improving Factory Pattern using DI in .Net

    This post discusses how to improve the Factory Pattern using Dependency Injection in .Net 5. It explains the concept of the Factory Pattern and demonstrates how dependency injection can be used to enhance it.

  2. 2
    Article
    Avatar of communityCommunity Picks·2y

    Applying Clean Architecture in Go

    Clean Architecture focuses on decoupling code and making it easier to make changes in the future. It separates the application into layers and focuses on the domain model. The implementation of the Blog project using Clean Architecture is described, and the benefits of using this approach are highlighted.

  3. 3
    Article
    Avatar of jsPlainEnglishJavaScript in Plain English·2y

    How Using Angular’s inject() Function Has Saved Me 1000 Lines of Code

    The inject() function in Angular allows for cleaner and more readable code by injecting dependencies in a different way than using constructors. It also provides better inheritance capabilities and can lead to significant reduction in lines of code.

  4. 4
    Article
    Avatar of codewithandreaCode with Andrea·2y

    Code Generation with Dart & Flutter: The Ultimate Guide

    This post discusses code generation in Dart and Flutter, covering topics such as the code generation mechanism with build_runner, useful code-generating packages like json_serializable and injectable, efficient codebase maintenance techniques, and best practices for using code generation in projects.