Permalink
Browse files

Added basic backbone learning.

  • Loading branch information...
1 parent 2e12dee commit 221e919b015d5979185266b150a7e0a9a0466eb4 Samal committed May 17, 2014
Showing with 31 additions and 0 deletions.
  1. +31 −0 README.md
View
@@ -1,2 +1,33 @@
backbone-js-learning
====================
+
+Over past 18 month, I have been building backbone application. During this period I have learn a lot about backbone and best practices.
+
+Here I compiled my learning.
+
+1. Backbone is un-opiniated lib, so build your application as best suited for you.
+2. Do not operate on DOM directly. Backbone has its own DOM element "el".
+3. Do not store data in DOM or view.
+4. Do not operate on view directly for DOM interaction, change state of backbone model, and let backbone view respond to state change.
+5. Events are good, use backbone event whenever possible.
+6. Use pub-sub system to interact on multiple view.
+7. Unwind event listener when view is removed.
+8. Use view level jquery el $.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

0 comments on commit 221e919

Please sign in to comment.