Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Examples and Comparisons of Events, Pub Sub and Deferred Promises

11 views
Skip to first unread message

pe...@otaqui.com

unread,
Oct 3, 2012, 9:26:56 AM10/3/12
to
I've written a post demonstrating and comparing three observer patterns in javascript.

If you're interested in reading it (or, given that this is comp.lang.javascript I guess you might be interested in ripping me a new one) it's here:

http://otaqui.com/blog/1374/event-emitter-pub-sub-or-deferred-promises-which-should-you-choose/

Thanks!

Pete

Scott Sauyet

unread,
Oct 3, 2012, 1:19:28 PM10/3/12
to
I see nothing in here that really explains why you want to compare
promises/deferred objects with the other two patterns. The comparison
between event emitters and PubSub is clear enough, if a little over-
simplified. But I don't personally think of Promises as solutions to
the same sort of problems, so I was looking forward to an interesting
explanation of how you found them to overlap. But there was nothing
there. I think this need some significant elaboration.

-- Scott
0 new messages