Data Driven Development with Backbone JS

Me

  • Sebastian Golasch
  • @asciidisco GitHub/Twitter
  • denkwerk.com
  • JavaScript Developer

The Hitchhiker's Guide to backbone js

MVC?

MVP?

MVVP?

MVWhatever?

I dont care!

The only thing that matters is Separation of concerns

Backbone.Model

Backbone models contain interactive data for an application as well as the logic around this data. For example, we can use a model to represent the concept of a person object including its attributes like tags, names and a location.

Backbone.Collection

Backbone collections contain 1 to n backbone models. You can think of em as arrays & objects on steroids.

Backbone.View

Backbone views represent chunks of html. Views are used to render templates & bind event handlers.

Backbone.Router

Backbone routers help you coordinate your views & models along with different sets of urls

HEAVY LIVE CODING ACTION

RECAP

Backbone makes it easy to work with incoming & outgoing data. It also encourages us to build reusable widgets. That leads to less AND more readable code.

Questions? Thx!

@asciidisco / denkwerk.com