Observer pattern

Often when information in one part of application changes, other parts need to be updates. This is the problem that the Observer pattern solves very efficiently.

In this example we'll program a weather station that notifies a fan and a temperature display every time a new measurement was taken.

Source code

Source code used in this video can be found on GitHub.

Like this video? Support me & subscribe to my channel: