课程: Python: Design Patterns (2021)
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Working with pattern language
- [Instructor] The process of mastering terms used to describe design patterns is like learning a new language. Therefore, we can safely say that these terms constitute a pattern language. The pattern language consists of name, context, problem, solution, and related patterns. The names of patterns should capture the gist of each pattern, and these names become an essential part of a vocabulary during a design process. Therefore, pattern names need to be especially meaningful and memorable. The context provides a scenario in which we may use these patterns. It also offers more insights on when to use the pattern. The problem part of the pattern language describes the design challenge a pattern is trying to address. And the solution part of the pattern language specifies the pattern itself. Patterns are specified in terms of their structures and behaviors. The structure in this case specifies the relationships between…