Hacker News new | ask | show | jobs
by shinuza 5171 days ago
I've being using this pattern since day one with Backbone.js. If you want to avoid spaghetti code you need to have a central mediator that will take care of the communication between your modules.

It's also easier to debug if all your events business happens in one place.