Ask HN: How to learn Backbone
Backbone Tutorials isn't up to date, a simple "Backbone tutorial" search brings up results from 2011, early 2012. I need to learn 0.9.2 Backbone, not an older version.
Can someone provide me a single resource or multiple great resources to learn Backbone, start to finish (preferably quickly but not mandatory)
34 comments
[ 3.9 ms ] story [ 81.2 ms ] threadIf the question here is Where is a good Backbone tutorial, I encourage you to look at the tutorial on Backbone-Relational (which is a plugin for Backbone):
http://antoviaque.org/docs/tutorials/backbone-relational-tut...
https://github.com/kjbekkelund/writings/blob/master/publishe...
As for the todo example, I found it a bit convoluted, so I tried to create a minimal backbone app here:
https://github.com/backlift/backlift-templates/tree/master/m...
http://www.meetup.com/AngularJS-London/events/78531572/
(Really, in general, I'd highly recommend Code School. Likely too basic for most here, but great to pass along to that person you know just starting out or in the early intermediate stages.)
I'm not saying that you shouldn't read tutorials, guides, and docs, but you should concentrate most of your effort on taking in the source.
The Backbone Docs and it's listed examples are really the best resource out there.
—— 1. I downloaded a copy of the following book and followed all the examples:
http://addyosmani.github.com/backbone-fundamentals/
Note that the following incomplete sections in the book you will very likely need (I did). The answer to each can be found on StackOverflow.
- Sub-Views And Nesting
- Managing Models In Nested Views
- Views Triggering Other Views
- Cleanly Disposing Views
- [Communicating effectively between views (particularly subviews)]—I added this because I was not sure how to do this after reading the book, I found help on StackOverflow.
By the way, the book is very good and Addy Osmani is a thorough writer, he does not shy away from detail, which I love. Detail is very good, it prevents you from getting stuck later and allows you to have a thorough understanding of the subject matter.
—— 2. Follow these 3 tutorials, they are easy, but very helpful:
http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tu...
http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tu...
http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tu...
— And this one, which is incredibly important for improving your Backbone skills and using Backbone efficiently. These are the things the author later learned on how to improve his preceding 3 tutorials that I listed above:
http://coenraets.org/blog/2012/01/backbone-js-lessons-learne...
—— 3. And StackOverflow will be your God send when you start to develop with backbone and realize that some simple things like communicating beween subviews is not immediately apparent. I also got a few excellent tips from this blog to help me on my way:
http://ricostacruz.com/backbone-patterns/
The commercial application I built is almost complete, I will post a link to it within a few days.
If you follow my guide above, I am confident you would be as equipped as I was to build a serious Backbone.js application without any experience in Backbone.
All the best with your learning and developing.
https://peepcode.com/products/backbone-js https://peepcode.com/products/backbone-ii https://peepcode.com/products/backbone-iii
It's not free, but you get way, way more than what you pay for ($9 per screencast).