Example Observer Application: Traffic Lights

This is the post where you have all been waiting for (I hope J), after reading the informative post what an Observer Pattern is. If you have no idea what an observer is, you better start reading my previous theoretical post about the Observer Pattern.

First an overview of the application we are going to build in this post:

  • An application to create a traffic light who changes his colour
  • Easy expandable
  • Future equipped (easy to add changes)
  • Object Oriented
  • With the Observer Pattern

Read the rest of this entry »

Design Patterns: Observer

After reading this book, I did learn a lot of new stuff about Design Patterns. At the same moment we are learning a lot about these patterns. One of them is Observer. It’s something I really like, and that is the reason I want to blog about it.

Read the rest of this entry »