Create your own awesome maps

Even on the go

with our free apps for iPhone, iPad and Android

Get Started

Already have an account?
Log In

Batman.js talk, Zohar Arad by Mind Map: Batman.js talk, Zohar Arad
0.0 stars - reviews range from 0 to 5

Batman.js talk, Zohar Arad

About

@zohararad

http://zohararad.com

Batman.js

By

Shopify

Real MVC

Opinionated

Written in CoffeeScript

Requires back-end

Node or Ruby

Can be for build-time only

Models

Persistence

out of the box:, local, remote

Observable attributes

Validation

existence &c

Computed attributes

"Behave just as you'd expect"

as Rails developer

Remote storage is Resource Aware

as in Rails, guess the URL patterns

Controllers

follows the pattern of scaffolding in Rails

resources encapsulates, model, view, controller, routes

Prepare data for views

Handle views events

Respond to route calls

Not

responsible to server interaction

Routes

RESTful

define resources like in Rails

but not in HTTP vers resolution

url fragments support

pushState planned

Views

unlike Ember, Backbone views use plain Html

binding via HTML5 data-bind attributes

Templates are readble HTML with logic in attributes

binding to data & routes

Samples contain also JS views

No partials

Object path resolution

Application

global namespace for operation

defines

routes

resources

loadable modules, Untitled

singleton

Pros

forcess proper code architecture

code separation & dir structure

like in Rails

coffeescript

no external dependencies

bye bye jquery

views are plain html

built-in local & remote persistence

backed by Shopify

Cons

node.js version dependency

>=0.4

documentation