最病 Design Patterns: What? o In the book Design Patterns" the design patterns are descriptions of communicating objects and classes that are customized to solve a general design problem in a particular context. a Design patterns represent solutions to problems that arise when developing software within a particular context Institute of Computer Software 2021/2/5 Nanjing University
Design Patterns: What? In the book “Design Patterns”, the design patterns are descriptions of communicating objects and classes that are customized to solve a general design problem in a particular context. Design patterns represent solutions to problems that arise when developing software within a particular context 2021/2/5 Institute of Computer Software Nanjing University 16
最病 about patterns a Documentation of expert software engineers behavior a Documentation of specific reoccurring problems(and solutions Abstraction of common design occurrences Institute of Computer Software 2021/2/5 Nanjing University
About Patterns Documentation of expert software engineers' "behavior" Documentation of specific reoccurring problems (and solutions) Abstraction of common design occurrences 2021/2/5 Institute of Computer Software Nanjing University 17
最病 A Properties of Design Patterns o a pattern addresses a recurring design problem that arises in specific design situations, and presents a solution to it. o Pafferns document existing, well-proven design experience. o Patterns provide a common vocabulary and understanding for design principles. o Patterns are a means of documenting software architectures. a Patterns support the construction of software with define properties. o Patterns help you to manage software complexity. Institute of Computer Software 2021/2/5 Nanjing University
Properties of Design Patterns A pattern addresses a recurring design problem that arises in specific design situations, and presents a solution to it. Patterns document existing, well-proven design experience. Patterns provide a common vocabulary and understanding for design principles. Patterns are a means of documenting software architectures. Patterns support the construction of software with define properties. Patterns help you to manage software complexity. 2021/2/5 Institute of Computer Software Nanjing University 18
最病 E SmalLtalk: MVC a Model-View-Controller MVC) [rasner and Pope, 1988] Mode:应用领域有关的类、对象、 数据结构以及企业的业务逻辑等; Controller View Vew:窗口画面,负责将Moel 的实现呈现给用户; Controller:监控用户传来的信息, Model 并根据信息指挥,协调 Model与 Separation of concern!MeW的合作。 Institute of Computer Software 2021/2/5 Nanjing University
SmallTalk: MVC Model-View-Controller (MVC) [Krasner and Pope,1988] 2021/2/5 Institute of Computer Software Nanjing University 19 Controller View Model Model: 应用领域有关的类、对象、 数据结构以及企业的业务逻辑等; View: 窗口画面,负责将Model 的实现呈现给用户; Controller: 监控用户传来的信息, 并根据信息指挥,协调Model与 View的合作。 Separation of concern!
最病 A Design Patterns a Gamma, erich ,R Helm r 设计模式 可复用面向对象软件的基础 patterns: Elements of reusable Johnson and j. vlissides. desi Design Patterns GoF Object-Oriented Software Addison-Wesley, 1994 D Elisabeth freeman Eric Freeman Bert Bates, Kathy Sierra. Head Head First irst Design Patterns, O Reilly Design Patterns Media, 2004 净 2005 Jolt Awards Institute of Computer Software 2021/2/5 Nanjing Universit
Design Patterns Gamma, Erich, R. Helm, R. Johnson, and J. Vlissides. Design patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley, 1994. Elisabeth Freeman, Eric Freeman, Bert Bates, Kathy Sierra. Head First Design Patterns, O'Reilly Media, 2004. 2021/2/5 Institute of Computer Software Nanjing University 20 2005 Jolt Awards GoF