- Hands-On Dependency Injection in Go
- Corey Scott
- 52字
- 2021-06-10 19:17:48
What does this mean for Go?
When using composition—particularly the unnamed variable form—to satisfy interfaces, LSP applies just as it would in object-oriented languages.
When implementing interfaces, we can use LSP's focus on consistent behavior as a way of detecting code smells related to incorrect abstractions.
推薦閱讀
- Java高并發核心編程(卷2):多線程、鎖、JMM、JUC、高并發設計模式
- Vue.js快跑:構建觸手可及的高性能Web應用
- MATLAB 2020 從入門到精通
- 網頁設計與制作教程(HTML+CSS+JavaScript)(第2版)
- Python爬蟲開發與項目實戰
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優化計算
- Learning Laravel 4 Application Development
- Machine Learning for Developers
- C編程技巧:117個問題解決方案示例
- STM8實戰
- Drupal 8 Development Cookbook(Second Edition)
- Node.js 6.x Blueprints
- Web開發新體驗
- Python程序設計教程
- C++游戲設計案例教程