Title Text

Model

Presenter

View

Model

Presenter

View

Module

ModulePresenter

ModulesView

ModuleItemView

ModulesListingView

Mediator Pattern

Uses Backbone.js and Marionette

Lot of components interacting with each other

High coupling

Solution?

Mediator Pattern

 

"An object that encapsulates how a set of objects interact"

Mediator Pattern

  • No direct communication, only through Mediator Object
  • Reduced Dependencies
  • Lower Coupling

ModuleSearch

TimeTable

ModuleList

Mediator

(listens for events)

Register

Calls

functions

addModule

removeModule

displayLesson

Make changes

A Similar App

Thank You!

Akshat Dubey

Rupali Roy Choudhury

Suranjana Sengupta

Anand Sundaram

CS3219 Seminar

By Anand Sundaram

CS3219 Seminar

  • 702