Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
V2EX
›
程序员
import 不就是依赖注入吗?自己搞依赖注入是不是多此一举
raysaii
·
Feb 23, 2023
· 1493 views
This topic created in 1160 days ago, the information mentioned may be changed or developed.
注入
import
依赖
多此一举
1 replies
1
noe132
Feb 23, 2023
我的理解:依赖注入通常是有多个 context ,每个 context 需要不同的实例对象。OOP 用的比较多,composition 用的比较少
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
949 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms ·
UTC 21:08
·
PVG 05:08
·
LAX 14:08
·
JFK 17:08
♥ Do have faith in what you're doing.
❯