设计模式——6大软件设计原则(demo案例实现,附带解析,快速掌握软件设计原则的精髓)

上传者: m0_60930579 | 上传时间: 2023-12-23 20:52:21 | 文件大小: 15KB | 文件类型: RAR
在软件开发中,为了提高软件系统的可维护性和可复用性,增加软件的可扩展性和灵活性,程序员要尽量根据6条原则来开发程序,从而提高软件开发效率、节约软件开发成本和维护成本。对扩展开放,对修改关闭。在程序需要进行拓展的时候,不能去修改原有的代码,实现一个热插拔的效果。简言之,是为了使程序的扩展性好,易于维护和升级。 该包下的所有demo都是一个个的软件设计原则的案例实现 包含有: 1、开闭原则 2、里氏代换原则 3、依赖倒转原则 4、接口隔离原则 5、迪米特法则 6、合成复用原则 使用了一个个的demo案例,以通俗易懂的生活案例解析软件开发设计原则,掌握开发细节。写出耦合度低、易于扩展、更容易维护的优质代码 代码中的注释信息,通俗易懂,凝结了本人的思考,让你更快掌握软件设计的基本原则 阅读建议: 建议先看一遍软件设计基本原则的概念,然后带着概念看此包内的demo代码,结合注释信息,相信你很快就能理解。最后再回过头看概念,就会特别清晰。 以上就是本篇关于软件设计原则的分享!

文件下载

资源详情

[{"title":"( 39 个子文件 15KB ) 设计模式——6大软件设计原则(demo案例实现,附带解析,快速掌握软件设计原则的精髓)","children":[{"title":"design-mode-htt","children":[{"title":"src","children":[{"title":"com","children":[{"title":"htt","children":[{"title":"principles","children":[{"title":"demo5","children":[{"title":"Fans.java <span style='color:#111;'> 344B </span>","children":null,"spread":false},{"title":"Agent.java <span style='color:#111;'> 950B </span>","children":null,"spread":false},{"title":"Star.java <span style='color:#111;'> 344B </span>","children":null,"spread":false},{"title":"Company.java <span style='color:#111;'> 357B </span>","children":null,"spread":false},{"title":"Main.java <span style='color:#111;'> 565B </span>","children":null,"spread":false},{"title":"readme.txt <span style='color:#111;'> 455B </span>","children":null,"spread":false}],"spread":true},{"title":"demo2","children":[{"title":"rightExp","children":[{"title":"Rectangle.java <span style='color:#111;'> 656B </span>","children":null,"spread":false},{"title":"Square.java <span style='color:#111;'> 454B </span>","children":null,"spread":false},{"title":"Quadrangle.java <span style='color:#111;'> 183B </span>","children":null,"spread":false},{"title":"Main.java <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"readme.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"errorExp","children":[{"title":"Rectangle.java <span style='color:#111;'> 399B </span>","children":null,"spread":false},{"title":"Square.java <span style='color:#111;'> 416B </span>","children":null,"spread":false},{"title":"Main.java <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false}],"spread":true},{"title":"readme.txt <span style='color:#111;'> 862B </span>","children":null,"spread":false}],"spread":true},{"title":"demo3","children":[{"title":"Cpu.java <span style='color:#111;'> 81B </span>","children":null,"spread":false},{"title":"Memory.java <span style='color:#111;'> 85B </span>","children":null,"spread":false},{"title":"CpuImpl_Intel.java <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"HardDisk.java <span style='color:#111;'> 184B </span>","children":null,"spread":false},{"title":"Conputer.java <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"HardDiskImpl_XiJie.java <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"MemoryImpl_Kingston.java <span style='color:#111;'> 219B </span>","children":null,"spread":false},{"title":"Main.java <span style='color:#111;'> 539B </span>","children":null,"spread":false},{"title":"readme.txt <span style='color:#111;'> 505B </span>","children":null,"spread":false}],"spread":true},{"title":"demo1","children":[{"title":"AbstractSkinImpl_02.java <span style='color:#111;'> 203B </span>","children":null,"spread":false},{"title":"AbstractSkin.java <span style='color:#111;'> 178B </span>","children":null,"spread":false},{"title":"SougouInput.java <span style='color:#111;'> 542B </span>","children":null,"spread":false},{"title":"AbstractSkinImpl_01.java <span style='color:#111;'> 203B </span>","children":null,"spread":false},{"title":"Main.java <span style='color:#111;'> 465B </span>","children":null,"spread":false},{"title":"readme.txt <span style='color:#111;'> 362B </span>","children":null,"spread":false}],"spread":true},{"title":"demo6","children":[{"title":"readme.txt <span style='color:#111;'> 1.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"demo4","children":[{"title":"TheftPrevent.java <span style='color:#111;'> 128B </span>","children":null,"spread":false},{"title":"FristDoor.java <span style='color:#111;'> 487B </span>","children":null,"spread":false},{"title":"SecondDoor.java <span style='color:#111;'> 376B </span>","children":null,"spread":false},{"title":"WaterPrevent.java <span style='color:#111;'> 128B </span>","children":null,"spread":false},{"title":"Main.java <span style='color:#111;'> 481B </span>","children":null,"spread":false},{"title":"readme.txt <span style='color:#111;'> 346B </span>","children":null,"spread":false},{"title":"FirePrevent.java <span style='color:#111;'> 126B </span>","children":null,"spread":false}],"spread":true},{"title":"readme.txt <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明