TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Backbone.js by example

74 pointsby emwaover 13 years ago

4 comments

wmwongover 13 years ago
I started looking at Backbone.js over the last few days.<p>I started with reading the documentation[1]. It is very well documented and contains a wealth of information.<p>Then I took a look at the Todo example[2] referenced in the documentation. It is also very well documented and puts together all the basics of the documentation into one clean example.<p>At this point, I started branching out into other tutorials. Everything I read basically reiterated the documentation and example above. This was good in terms of drilling the ideas into my head more solidly, but I could have stopped after the Todo example.<p>There was one notable tutorial though that was very different. Backbone provides a framework, but does not specify a structured way to store or load files. I believe this is on purpose. Backbone concentrates on the framework and gets out of your way. This leaves some head scratching though. This tutorial[3] combines Backbone.js with Require.js and provides an intriguing solution.<p>[1] <a href="http://documentcloud.github.com/backbone/" rel="nofollow">http://documentcloud.github.com/backbone/</a> [2] <a href="http://documentcloud.github.com/backbone/docs/todos.html" rel="nofollow">http://documentcloud.github.com/backbone/docs/todos.html</a> [3] <a href="http://backbonetutorials.com/organizing-backbone-using-modules/" rel="nofollow">http://backbonetutorials.com/organizing-backbone-using-modul...</a>
famoreiraover 13 years ago
Interesting to see Backbone being used to model non-crud single page apps. I had to build a SVG based editor before and looking at this example I can see how using Backbone would have made my life easier.
bmeltonover 13 years ago
Thank you.<p>As a backend developer trying to embrace Backbone, I'm finding that there isn't a wealth of consistently good material to learn from. One tutorial will push everything to the view, and the next pushes everything to the router.<p>It's hard to determine exactly what the best practices are, and making up my own mind isn't necessarily that informed, as I'm just learning the framework.<p>I'm hoping for more and more documentation to appear as there are things that I simply can't figure out how to do and can't find a reference for anywhere. Every resource helps.
评论 #3480456 未加载
评论 #3480030 未加载
dgudkovover 13 years ago
Good example. I liked your way of binding model events to views - which is usually not the most elegant part of Backbone. Thanks!