JSFoo 2013

All about being creative with JavaScript

Sagar Ganatra

@sagarg

Modularize your client side applications using Backbone and Require

Submitted Jul 28, 2013

The objective of this session is to introduce the audience to building modularized applications using BackboneJS and RequireJS. These modules are independent, self-contained components and can be reused and tested in isolation.

Outline

BackboneJS is one of the popular JavaScript MVC frameworks used in building client side applications. It provides components like View, Collection, Model and a Router. However, it doesn’t dictate the way you should structure your code so that it doesn’t end up like spaghetti code. Enter RequireJS. RequireJS allows you to define dependencies between various components and you can leverage it in your application to build modules. These modules are self-contained units and they represent an entity on the page. However, we need a mechanism through which these components interact with other components on a page. We need an application core. An application core provides a channel through which these components interact. The application core also loads these modules on demand and destroy them when required.

Requirements

An understanding of MVC pattern and experience in building applications using BackboneJS will be helpful.

Speaker bio

Sagar Ganatra is a front end developer\architect. He has worked extensively on building front end applications using Backbone and Require. He also writes about them at http://www.sagarganatra.com

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

JSFoo is a forum for discussing UI engineering; fullstack development; web applications engineering, performance, security and design; accessibility; and latest developments in #JavaScript. Follow JSFoo on Twitter more