Skip to content

Commit cab7b33

Browse files
committed
add notes for Building Pageless Apps with Backbone.js and Rails presentation
1 parent 00ab15e commit cab7b33

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
BUILDING PAGELESS APPS WITH RAILS AND BACKBONE.JS
2+
3+
benefits of pageless:
4+
* speed
5+
* no flash of white during a page reload
6+
7+
Pageless apps:
8+
* GMail
9+
10+
Users start to drop off when it takes more than 1 second for response time. After 10 second wait, user is basically gone,
11+
12+
Do no harm to users:
13+
* don't take away forward and back buttons
14+
* allow bookmarking
15+
16+
Use hash in URL to do no harm.
17+
18+
backbone.js:
19+
* less than 4kb
20+
* readable source
21+
* 1000 lines of annotated source
22+
23+
sample app:
24+
* expand on pastie.org with more features
25+
26+
jammit:
27+
* a gem to manage js when you have too much js library files
28+
* auto minifies js during deploy
29+
* .jst extensions are compiled into a js function
30+
31+
javascript templates are your friend. Use one that you like.
32+
33+
backbone.js
34+
* hints:
35+
* 'this' is for objects
36+
* use event.currentTarget
37+
* controllers:
38+
* watch the page fragment and do something when it changes
39+
Backbone.history.start();
40+
* routes page fragments to functions
41+
* views:
42+
* presentation and behavior
43+
* template, initialize, and render functions
44+
* a view can inherit another view
45+
* models:
46+
* js class
47+
* if it has an id attribute, it is saved. No id means unsaved or new
48+
* collections:
49+
* uses underscore.js enumerable functions
50+
*
51+
52+
Interlude:
53+
* function(){} === lambda{}
54+
55+

0 commit comments

Comments
 (0)