lasbun's blog

  • Home

  • Tags

  • Archives

  • Search

设计模式之单一职责原则

Posted on 2019-12-05

单一职责原则

单一职责原则(single Responsibility Principle)

  • There should no more than one reason for a class to change.
  • This is sometimes hard to say.
  • 在符合业务场景下,尽量的对模块做到:职能单一,行为单一。
# 设计模式 # 架构
设计模式之开闭原则
设计模式之接口隔离原则

lasbun

87 posts
1 categories
61 tags
© 2023 lasbun
Powered by Hexo v3.9.0
|
Theme – NexT.Gemini v7.1.2