The Observer Pattern
2021-9-6 Less than 1 minute
# The Observer Pattern
# What problems does the Observer Pattern seek to solve?
You can build reusable codes for your specific needs. It also solves the problem of data binding.
# What are the three mechanisms of the observer pattern?
Subscribe Method - adds new events Unsubscribe Method - removes events Broadcast Method - executes all events
# Review the code generated from the bcw-template and reflect on the proxy objects from yesterday, and your understanding of the observer pattern today. With this knowledge, explain how the magic of the bcw-template uses these two concepts to manage and update the dom.
It generates id's to specific items in your file. Another thing that the proxy does is it helps guide files to one another.