thinkbuildblog

Tag Archives: namespacing

“Pub/Sub” with jQuery

Posted by Kurtis Kemple

“Pub/Sub” is short for publishing and subscribing. It is derived from the observer pattern (click here for more on the observer pattern). The overall idea is that when a certain event fires (or action takes place), listeners that are subscribed to it execute. This allows for extensive asynchronous development as you can easily hook on to your jQuery AJAX callbacks and keep clean and concise code.

With the great advancements that have come along with AJAX (if you are unfamiliar with AJAX, read this first), there have also been some problems. (more…)