- 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.
推薦閱讀
- Java語言程序設計
- 觸·心:DT時代的大數據精準營銷
- Docker技術入門與實戰(第3版)
- GeoServer Cookbook
- Linux C/C++服務器開發實踐
- Game Programming Using Qt Beginner's Guide
- 深入淺出Windows API程序設計:編程基礎篇
- Python金融數據分析
- ASP.NET 3.5程序設計與項目實踐
- Swift細致入門與最佳實踐
- 數據結構案例教程(C/C++版)
- Creating Data Stories with Tableau Public
- Advanced UFT 12 for Test Engineers Cookbook
- PyQt編程快速上手
- INSTANT Apache ServiceMix How-to