- Hands-On Dependency Injection in Go
- Corey Scott
- 119字
- 2021-06-10 19:17:46
SOLID Design Principles for Go
In 2002, Robert "Uncle Bob" Martin published the book Agile Software Development, Principles, Patterns, and Practices in which he defined the five principles of reusable programs, which he called SOLID principles. While it might seem strange to include these principles in a book about a programming language invented 10 years later, these principles are still relevant today.
In this chapter, we will briefly examine each of these principles, how they relate to dependency injection (DI) and what that means for Go. SOLID is an acronym for five popular object-oriented software design principles:
- Single responsibility principle
- Open/closed principle
- Liskov substitution principle
- Interface segregation principle
- Dependency inversion principle
推薦閱讀
- Getting Started with Gulp(Second Edition)
- Learning Selenium Testing Tools with Python
- 零基礎學Scratch少兒編程:小學課本中的Scratch創意編程
- 單片機C語言程序設計實訓100例:基于STC8051+Proteus仿真與實戰
- Python程序設計
- 高級C/C++編譯技術(典藏版)
- MySQL數據庫管理與開發(慕課版)
- Bootstrap for Rails
- Android Studio Cookbook
- Python期貨量化交易實戰
- Python Projects for Kids
- Web開發的平民英雄:PHP+MySQL
- Building UIs with Wijmo
- SQL Server 2014數據庫設計與開發教程(微課版)
- Mastering Unity Scripting