Jianwu Chen
1 min readJul 9, 2019

--

Thanks for demonstrating a simplified implementation of dic. However in your implement, as the dependencies are identified by argument names. There’s high chance of name confliction which causes accidental wiring. That’s the major problem of all the dic no matter how sophisticated they are. The root cause is with dic, people tend to abuse of DI pattern, which exposes too many internal dependencies into global name space. The registry are basical a global variable container.

--

--

Jianwu Chen
Jianwu Chen

Written by Jianwu Chen

Passionate Open Source Developer. ex-Ebayer, ex-Googler, ex-Linkin-er

Responses (1)