From the course: Python: Design Patterns (2021)

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Understanding pattern context

Understanding pattern context - Python Tutorial

From the course: Python: Design Patterns (2021)

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,…

Contents