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: https://gist.github.com/learncodeacad...
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"
• Responsive Design Tutorial - Tips for maki...
~-~~-~~~-~~-~
In questa pagina del sito puoi guardare il video online Modular Javascript #4 - PubSub Javascript Design Pattern della durata di ore minuti seconda in buona qualità , che l'utente ha caricato LearnCode.academy 29 July 2015, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 121,385 volte e gli è piaciuto 1.3 mille spettatori. Buona visione!