摘要: 六大设计原则 一 单一职责原则(SPR) 单一职责原则定义:There should nerver be more than one reason for a class to change. 好处:类的复杂性降低,可读性、可维护性提高,降低修改引入问题的风险 单一职责原则难点在于如何界定“职责”, 阅读全文
posted @ 2022-06-08 09:36 逍的遥 阅读(52) 评论(0) 推荐(0) 编辑