Ask HN: How to learn Backbone
125 points| robbiet480 | 13 years ago | reply
Can someone provide me a single resource or multiple great resources to learn Backbone, start to finish (preferably quickly but not mandatory)
125 points| robbiet480 | 13 years ago | reply
Can someone provide me a single resource or multiple great resources to learn Backbone, start to finish (preferably quickly but not mandatory)
[+] [-] richardofyork|13 years ago|reply
—— 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.
[+] [-] gee_totes|13 years ago|reply
If 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...
[+] [-] davedx|13 years ago|reply
[+] [-] robbiet480|13 years ago|reply
[+] [-] braddunbar|13 years ago|reply
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.
[+] [-] ya3r|13 years ago|reply
https://github.com/kjbekkelund/writings/blob/master/publishe...
[+] [-] robbiet480|13 years ago|reply
[+] [-] datashaman|13 years ago|reply
[+] [-] ckuijjer|13 years ago|reply
[+] [-] jmonegro|13 years ago|reply
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).
[+] [-] sahat|13 years ago|reply
[+] [-] theone|13 years ago|reply
[+] [-] robbiet480|13 years ago|reply
[+] [-] mobweb|13 years ago|reply
[+] [-] honzzz|13 years ago|reply
[+] [-] itayadler|13 years ago|reply
[+] [-] dustincoates|13 years ago|reply
(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.)
[+] [-] rglover|13 years ago|reply
[+] [-] colevscode|13 years ago|reply
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...
[+] [-] timc3|13 years ago|reply
[+] [-] robbiet480|13 years ago|reply
[+] [-] some1else|13 years ago|reply
The Backbone Docs and it's listed examples are really the best resource out there.
[+] [-] buremba|13 years ago|reply
[+] [-] prydonius|13 years ago|reply
[+] [-] chinchang|13 years ago|reply
[+] [-] robin_reala|13 years ago|reply
[+] [-] pdelgallego|13 years ago|reply
http://www.meetup.com/AngularJS-London/events/78531572/
[+] [-] eweise|13 years ago|reply
[+] [-] ojr|13 years ago|reply
[+] [-] unknown|13 years ago|reply
[deleted]
[+] [-] jimmytucson|13 years ago|reply