Modular Javascript #4 - PubSub Javascript Design Pattern @learncodeacademy
Modular Javascript #4 - PubSub Javascript Design Pattern  @learncodeacademy
Uploaded July 2015 | Updated September 2026, 1 week ago
Last video, we covered the revealing module pattern - where we expose an API allowing modules to talk to each other. This works well for smaller amounts of modules, but can have issues when many modules need to talk to each other.

Here's the pubsub code I'm using in this example: gist.github.com/learncodeacademy/777349747d8382bfb722

In this video, we'll cover the pubsub design pattern (publish/subscribe), which allows us to decouple our modules. Once integrated with our pubsub module, they can emit events and not have to worry about which modules depend on them. Modules can subscribe to events and be notified when any module publishes.

-~-~~-~~~-~~-~-
Also watch: "Responsive Design Tutorial - Tips for making web sites look great on any device"
youtube.com/watch?v=fgOO9YUFlGI
-~-~~-~~~-~~-~-
Modular Javascript #4 - PubSub Javascript Design PatternMobX tutorial #2 - Computed Values and Nested/Referenced ObservablesNode.js tutorial for beginners - an introduction to Node.js with Express.jsBootstrap Tutorial For Beginners - Responsive Design with Bootstrap 3 - Responsive HTML, CSSConnecting React & Redux - Redux Tutorial #7GITHUB PULL REQUEST, Branching, Merging & Team WorkflowBuild Wordle in 20min with React.js!Tailwind CSS - why CSS utility classes save so much timeAre you bad, good, better or best with Async JS? JS Tutorial: Callbacks, Promises, GeneratorsJavascript Tutorial For Beginners - #4 Javascript Arrays & LoopsHow to code in 30min - FOR ABSOLUTE BEGINNERSWATCH THIS IF YOU WANT TO BECOME A WEB DEVELOPER! - Web Development Career advice
LearnCode.academy |

Modular Javascript #4 - PubSub Javascript Design Pattern

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER