300 likes | 408 Views
Chapter 26. Fig. 26.1. Fig. 26.2. Pattern Overload:. Problem is there are hundreds of patterns. Good programmer needs 50+ patterns Most design patterns are specializations of GRASP principles Focus on the underlying themes and not a specific pattern implementation of these themes.
E N D
Pattern Overload: • Problem is there are hundreds of patterns. • Good programmer needs 50+ patterns • Most design patterns are specializations of GRASP principles • Focus on the underlying themes and not a specific pattern implementation of these themes.
Fig. 26.3 generalization is “suggestive” of the conceptual connections
GRASP Principles: • Protected Variation: • Problem: keep object instability from impacting other program elements. • Solution: Wrap points of instability with a stable interface. • Example: Writing your own adapter to hide direct calls to the API of some software package.