官术网_书友最值得收藏!

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 
主站蜘蛛池模板: 蛟河市| 扶风县| 阿图什市| 应用必备| 忻城县| 广平县| 边坝县| 庐江县| 德钦县| 平顺县| 津市市| 普定县| 霞浦县| 湟中县| 定日县| 雷山县| 苗栗市| 霍州市| 深州市| 宕昌县| 松潘县| 全椒县| 丰县| 赣榆县| 封丘县| 平凉市| 察雅县| 西乌| 阿拉善右旗| 长宁区| 弥勒县| 通化县| 崇州市| 准格尔旗| 合水县| 双桥区| 呼伦贝尔市| 南岸区| 肥西县| 青铜峡市| 莎车县|