-
March 8th, 2013, 04:10 AM
#1
Sending messages between objects and the observer pattern?
Are they somehow related to each other?
Thanks
Jack
-
March 8th, 2013, 04:44 AM
#2
Re: Sending messages between objects and the observer pattern?
Everything is related to everything else in some way.
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
-
March 8th, 2013, 06:08 AM
#3
Re: Sending messages between objects and the observer pattern?
Is the observer pattern a "wrapper" or say I don't know different ways of presenting the messaging system?
Thanks
Jack
-
March 12th, 2013, 03:22 AM
#4
Re: Sending messages between objects and the observer pattern?
Originally Posted by lucky6969b
Is the observer pattern a "wrapper" or say I don't know different ways of presenting the messaging system?
I don't quite understand what you're asking but in my view the design pattern that's closest to a message system is Mediator. It's a complexity reducing pattern and the idea is to broadcast messages among anonymous objects rather than letting them communicate directly knowing about each other.
Regarding Observer I'd say the notification part can be though of as messaging. And in the GoF book a variation of Observer is described which uses a Mediator for more complex notification needs.
Last edited by nuzzle; March 12th, 2013 at 03:38 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|