Best of Dependency Injection2023

  1. 1
    Article
    Avatar of tshThe Software House·3y

    JavaScript dependency injection in Node.js – introduction

    JavaScript dependency injection in Node.js is a well-known technique, which can make it much easier to produce independent and scalable modules. It can be used in many programming languages and frameworks, but not as popular as they could be. The service is no longer paired with a repository module but requires to be passed to it.

  2. 2
    Article
    Avatar of medium_jsMedium·3y

    Working with Laravel Repository Pattern

    The post discusses the implementation of the Repository Pattern in Laravel, which is a widely-used software design pattern that provides an abstraction layer between application code and the database. It explains the main components of the pattern and provides step-by-step instructions for implementation.

  3. 3
    Article
    Avatar of itnextITNEXT·3y

    Dependency injection in React

    Dependency injection in React Components should not contain business logic, do you agree? If you’re on the fence about the answer, I’ll try to give you some insights into why we shouldn’t do this. This definition should discourage us from putting business logic in Components.

  4. 4
    Article
    Avatar of colkgirlCode Like A Girl·3y

    Understanding Dependency Injections

    The benefits of Dependency Injections include increased flexibility and modularity in software design, improved testability, and reduced coupling between components. With dependency injection, we can pass the database connection to the class from outside, making the code more modular and easier to test.

  5. 5
    Article
    Avatar of mwaseemzakirWaseem .NET Newsletter·2y

    EP 39 : How to organize your dependencies in .NET

    The article discusses three different approaches of registering dependencies in .NET, which are inline dependency registration, extension method dependency registration, and modularized dependency registration. Each approach offers its own benefits, with modularized dependency registration providing a more organized and modular approach to dependency registration.

  6. 6
    Article
    Avatar of snykSnyk·3y

    Dependency injection in Python

    Learn about the concept of dependency injection in Python, its benefits for code maintainability, modularity, and testability, and its limitations. Explore how dependency injection can be implemented in popular Python frameworks such as Flask, Django, and FastAPI. Also, discover the different Python dependency injection frameworks available and how they can contribute to your project. Finally, learn about the importance of keeping project dependencies secure with Snyk and how it integrates with Python development workflows.

  7. 7
    Article
    Avatar of awstipAWS Tip·3y

    Factory Pattern: Better Laravel Monoliths

    Factory Pattern promotes loose coupling code by separating implementation from its client. The pattern is useful when we have more than one implementation of an interface and selection of implementing class is dictated by context such as calling component or request parameters. We have to use Factory Pattern and Dependency Injection.

  8. 8
    Article
    Avatar of gcgitconnected·3y

    Difference between @Component, @Service, @Controller, and @Repository in Spring Framework

    Learn about the differences between @Component, @Service, @Controller, and @Repository annotations in the Spring Framework and how Component Scanning works.

  9. 9
    Article
    Avatar of communityCommunity Picks·3y

    Dependency Inversion Principle of SOLID | DIP

    This is the 6th part of the SOLID Design Principle. In the object-oriented design, the Dependency Inversion Principle is a specific form of loosely coupled software modules. The principle of dependency inversion refers to the decoupling of software modules. Inversion is nothing but a reversal of the direction.

  10. 10
    Article
    Avatar of freecodecampfreeCodeCamp·3y

    Build Minimal APIs in .NET 7

    The freeCodeCamp.org YouTube channel will teach you the power of Minimal APIs in.NET 7 and build well-constructed endpoints with C#,.NET 7, and Swagger. Learn about the changes you'll need to make to your Program.cs file to accommodate Minimal API endpoints.

  11. 11
    Article
    Avatar of medium_jsMedium·3y

    The 2023 Angular Developer Roadmap | Zero to Hero

    The 2023 Angular Developer Roadmap is a comprehensive roadmap that outlines the essential steps and resources to help you master Angular and start building impressive applications with confidence. The key to success lies in continuous learning, practice and the application of best practices as you build real-world projects.

  12. 12
    Article
    Avatar of milanjovanovicMilan Jovanović·3y

    Improving ASP.NET Core Dependency Injection With Scrutor

    ASP.NET Core Dependency Injection can be improved with the Scrutor library, which extends the features of Microsoft.Extensions.DependencyInjection. Scrutor allows for assembly scanning and service decoration, reducing boilerplate code and making the DI setup cleaner and more maintainable.

  13. 13
    Article
    Avatar of devgeniusDev Genius·2y

    Mastering Advanced OOP Concepts in Python: Theory Behind OOP

    Explore advanced OOP concepts in Python, including Inheritance, Encapsulation, Polymorphism, and Composition. Learn about important design patterns such as Singleton, Observer, Factory Method, Strategy, and Adapter. Discover metaclasses and dependency injection.

  14. 14
    Article
    Avatar of hackernoonHacker Noon·3y

    Mastering Angular Services and Dependency Injection: A Comprehensive Guide with Example

    Services can be used throughout an Angular application, ensuring a DRY (Don't Repeat Yourself) approach to code. Dependency Injection is a design pattern used to manage the dependencies of an application and facilitate the flow of required objects or services. Services are classes that provide a specific functionality or a set of related functions.

  15. 15
    Article
    Avatar of medium_jsMedium·3y

    🅰️ New Angular 16 is Going Big in 2023: Everything You Need to Know

    The web framework made by Google and using TypeScript is getting ready for version 16. Version 16 is not out yet, but you can try the first release candidate version now. It will make it easier to use server-side rendering, which means faster and smoother web pages.

  16. 16
    Article
    Avatar of medium_jsMedium·3y

    A memoir on the crusade to write our own Go framework

    Developers in Pipedrive have created their own Go framework called Pdfx, based on Uber's Fx, to standardize projects and improve developer productivity by reducing boilerplate code. Pdfx allows for seamless dependency injection and easy mocking in testing. The framework provides a collection of boilerplate modules tailored for use with Fx, bringing the developer experience of writing Go in Pipedrive to parity with JavaScript.

  17. 17
    Article
    Avatar of discdotDiscover .NET·2y

    Primary constructors has caused concerns for C# developers

    Concerns have been raised by C# developers regarding the use of primary constructors for dependency injection. While primary constructors reduce code bloat, the mutability of parameters can lead to instances being changed in other parts of the class, increasing the risk of runtime exceptions. There are discussions about adding read-only parameters to primary constructors in the future.

  18. 18
    Article
    Avatar of communityCommunity Picks·3y

    simple_architecture

    Simple Architecture for Flutter apps with Dependency Injection, Mediator Pattern and Observable Streams