Dependency injection (DI) is an implementation of the dependency inversion principle with the aim of separation of concerns by separating the depndency's implementation from the class that's using it. That kind of abstraction makes it possible to have different implementations with the same public methods so the class using it, doesn't need to care which of the implementations is used. This is also especially useful for unit testing.
There are different types of dependency injection:
#Web框架#Iris 是基于 Go 编写的一个快速,简单但功能齐全、高效的 Web 框架。
#安卓#💪 A framework for assisting in the renovation of Android componentization (帮助 Android App 进行组件化改造的路由框架)
A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.
翻译 - 由TypeScript支持的JavaScript和Node.js应用程序的控制容器功能强大而轻便。
Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
翻译 - 无需上下文即可打开屏幕/小吃店/对话框/底部工作表,使用Get轻松管理状态并注入依赖项。
#安卓#Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform
#IOS#Dependency injection framework for Swift with iOS/macOS/Linux
Hyperf 是一个高性能、高灵活性的渐进式 PHP 协程框架,内置协程服务器及大量常用的组件,性能较传统基于 PHP-FPM 的框架有质的提升,提供超高性能的同时,也保持着极其灵活的可扩展性,标准组件均基于 PSR 标准 实现,基于强大的依赖注入设计,保证了绝大部分组件或类都是 可替换 与 可复用 的。
A dependency injection based application framework for Go.
翻译 - Go的基于依赖项注入的应用程序框架。
Lightweight dependency injection container for JavaScript/TypeScript
💖 ASP.NET Core 8.0 全家桶教程,前后端分离后端接口,vue教程姊妹篇,官方文档:
LoopBack makes it easy to build modern API applications that require complex integrations.
翻译 - LoopBack使构建需要复杂集成的现代API应用程序变得容易。
An addictive .NET IoC container
翻译 - 令人上瘾的.NET IoC容器
Dependency injection framework for Python
咖啡商店,一个事件驱动、微服务实战项目。使用Golang、Nomad, Consul Connect, Vault 开发以及Terraform部署
Simple yet powerful dependency injection tool for JavaScript and TypeScript.
翻译 - 简单而强大的JavaScript和TypeScript依赖注入工具。
Assembly scanning and decoration extensions for Microsoft.Extensions.DependencyInjection
翻译 - Microsoft.Extensions.DependencyInjection的程序集扫描和装饰扩展
Extremely powerful Inversion of Control (IoC) container for Node.JS
翻译 - Node.JS的极其强大的控制反转(IoC)容器