摘要: Software Design Patterns - Observer Pattern, Command Pattern Observer Pattern - For Broadcasting Messages to Subscribers Needs to “Notify/update ALL i 阅读全文
posted @ 2018-03-26 19:11 Charonnnnn 阅读(261) 评论(0) 推荐(0) 编辑
摘要: Benefits of Design Patterns Design patterns enable large-scale reuse of software architectures and also help document systems Patterns explicitly capt 阅读全文
posted @ 2018-03-26 19:10 Charonnnnn 阅读(349) 评论(0) 推荐(0) 编辑
摘要: Single Responsibility Principle (SRP) Just because you can, doesn't mean you should. Example SPR: The design violates SRP. Class Rectangle has two res 阅读全文
posted @ 2018-03-26 11:49 Charonnnnn 阅读(320) 评论(0) 推荐(0) 编辑