I’ve read as much as I can about observer patterns but I am failing to fully understand what/when it would be used. Can anyone explain this to me?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Think of it like a publisher / subscriber model.
An example would be stocks
When the price of a stock object (subject) is updated, any “investor” (observer) that is subscribed to this stock is notified of the updated price