请问软件工程中是否有类设计的较权威的指导性原则?

nol 2004-11-20 09:02:51
能否给小弟讲讲,谢谢了。
...全文
238 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
yangzhenhai 2004-12-13
  • 打赏
  • 举报
回复
只管自然就够了
autoegg 2004-11-22
  • 打赏
  • 举报
回复
好像也没有什么权威不权威的,还是推荐GOF的《Design Patterns》。
pinxue 2004-11-21
  • 打赏
  • 举报
回复
最权威的指导性原则就是:


道法自然
saucer 2004-11-21
  • 打赏
  • 举报
回复
Principles Of Object Oriented Design
http://c2.com/cgi/wiki?PrinciplesOfObjectOrientedDesign


There are five principles of class design.

(SRP) The SingleResponsibilityPrinciple
(OCP) The OpenClosedPrinciple
(LSP) The LiskovSubstitutionPrinciple
(DIP) The DependencyInversionPrinciple
(ISP) The InterfaceSegregationPrinciple

There are three principles of package cohesion

(REP) The ReuseReleaseEquivalencePrinciple
(CCP) The CommonClosurePrinciple
(CRP) The CommonReusePrinciple

There are three principles of package coupling

(ADP) The AcyclicDependenciesPrinciple
(SDP) The StableDependenciesPrinciple
(SAP) The StableAbstractionsPrinciple

-- RobertCecilMartin - 9/7/99
w_rose 2004-11-21
  • 打赏
  • 举报
回复
死读书读死书读书死!这就是权威原则。

1,265

社区成员

发帖
与我相关
我的任务
社区描述
软件工程/管理 管理版
社区管理员
  • 研发管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧