language agnostic - Observer Design Pattern vs "Listeners" -
It seems that the observer design pattern described in the GOF is actually the same thing as listeners found in various toolkits. Is there any difference between the concepts, or the audience and the inspector are actually the same thing
(I am not looking for any specific computer language implementation, I only have a design point difference (if Someone). Yes, I know that there are many answers to similar questions, SOF, but they are contained in specific questions about specific languages - I was looking for a design answer I do not answer any language.)
What is the word "listener" refers to the observer pattern or Not for reference, for example, "event listeners" of Java swing are part of an observer pattern implementation, whereas nets are not "trace listeners".
Framework is not unusual for assigning a different name to the authors, but pattern patterns are commonly used when discussing patterns.
In relation to the design, language and platform are often being used on the implementation of a given paradigm. As such, a particular implementation of the supervisor pattern within a given framework (which may be to use the word "listener" to describe the role of concrete observer) may be slightly different from the design described in the book of pattern .
Comments
Post a Comment