No description, website, or topics provided.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


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 $.