Skip to content

Observer Pattern

Vines & roots,Stafford, Virginia, USA
In my aforementioned class on Object-oriented Analysis and Design we, of course, study design patterns. Here are a few links concerning the observer pattern.

  • Here’s the problem: You’re designing a program that will render data describing a three-dimensional scene in two dimensions. The program must be modular and must permit multiple, simultaneous views of the same scene. Each view must be able to display the scene from a different vantage point, under different lighting conditions. More importantly, if any portion of the underlying scene changes, the views must update themselves.
  • The so-called Observer design pattern is introduced in [1]. The following article describes this pattern, tries to explain why the pattern is helpful and takes a closer look at several consequences of using the pattern. Code examples are given in a java-like syntax.
  • Design patterns document recurring solutions to recurring problems in object-oriented software design. They capture design expertise in reusable form. A design pattern has a name, a description of the problem it addresses, and a general solution that designers must tailor to their particular variant of the problem

Post a Comment

Your email is never published nor shared. Required fields are marked *