- Hands-On Dependency Injection in Go
- Corey Scott
- 54字
- 2021-06-10 19:17:48
How does this relate to DI?
By following LSP, our code performs consistently regardless of the dependencies we are injecting. Violating LSP, on the other hand, leads us to violate OCP. These violations cause our code to have too much knowledge of the implementations, which in turn breaks the abstraction of the injected dependencies.
推薦閱讀
- Python 深度學習
- Apache Spark 2.x Machine Learning Cookbook
- 匯編語言程序設計(第2版)
- 名師講壇:Spring實戰開發(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- 數據結構與算法分析(C++語言版)
- Java編程的邏輯
- Solr Cookbook(Third Edition)
- 小程序,巧應用:微信小程序開發實戰(第2版)
- 深入剖析Java虛擬機:源碼剖析與實例詳解(基礎卷)
- QPanda量子計算編程
- 大數據時代的企業升級之道(全3冊)
- 游戲設計的底層邏輯
- C語言程序設計
- 跟小樓老師學用Axure RP 9:玩轉產品原型設計
- Flask Web開發實戰:入門、進階與原理解析