Are there any resources that teach (with examples) the observer pattern and other design patterns?There's this book called Game Programming Patterns, it teaches all the import patterns, but the source code that the author uses in the examples is difficult for a beginner like me.
I tried to write my own implementation of the pattern, but I feel I already made a lot of mistakes: