课程: Python: Design Patterns (2021)

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Understanding pattern context

Understanding pattern context

- To use design patterns effectively you need to know the context in which the design patterns work best. Lets start by learning how to describe the design pattern context. The pattern context consists of the following. Participants, quality attributes, forces, and consequences. Participants refer to, the classes involved to form a design pattern. They play different roles to accomplish the goals of the design pattern. Quality attributes refer to, non functional requirements such as usability, modifiability, reliability, performance and so on. Quality attributes have an impact on the entire software, and architectural solutions address them. Forces are various factors or trade-offs you consider when trying to adopt a particular design pattern. Quality attributes manifest forces. If you don't reason about these forces very well, you're likely to end up facing some unintended consequences. These consequences could be,…

内容