L7 - Pattern Oriented Design Flashcards
If there are still possible changes at runtime. Which design pattern would you choose?
Strategy Pattern
If code ‘must be extensible’. Which design pattern should be used?
Observer Pattern
If a class ‘must interface to existing service or API’. Which design pattern should be used?
Façade pattern
Goals of Pattern-Oriented Design
Manage Complexity & Reduce Costs & Reduce Time2Market
If class should be location transparent. What is an appropriate pattern?
Proxy Pattern
If a class ‘must interface with an existing object’. Which design pattern should be used?
Adapter Pattern
Keyword for Bridge Pattern
‘must interface to several systems that have to be developed’
Keyword for Adapter Pattern
‘must interface with an existing object’
Cue sentence for a Proxy Pattern
‘must be location transparent’
Composite Pattern is used when it must …
‘have variable depth and width’