Lecture 7: Fundamentals of Design Patterns

This lecture introduces the concept of design patterns as tried-and-tested solutions to common object-oriented design problems. A game development scenario is used to illustrate how the Strategy pattern provides a good and flexible solution to a problem. We look at how Strategy is used in reality to support different UI layout algorithms in Java’s Swing framework. A second pattern, Observer, is introduced and we see how it is used in reality for event handling in Swing.