草叶睡蜢

导航

随笔分类 -  设计原则及模式

SOLID设计原则
摘要:SOLID设计原则 SRP Single Reposibility Principle 单一职责原则 A class should have one,and only one,reason to change. 就一个类而言,有且仅有一个引起它变化的原因。 每个类都必须要有一个唯一的明确的职责,只做 阅读全文

posted @ 2021-10-30 14:28 草叶睡蜢 阅读(56) 评论(0) 推荐(0)

设计原则-GRASP
摘要:GRASP原则 General Responsibility Assignment Software Pattern 通用职责分派软件模式 Information Expert assign the responsibility to the class that has the informati 阅读全文

posted @ 2021-10-29 16:47 草叶睡蜢 阅读(88) 评论(0) 推荐(0)