News for hackers. Stuff that matters.
Re:Announcing Backbone.js: Models, Collections and Views in ... by swah on Thursday October 14, 2010 @08:20AM (#1790633)
Can you please expand on this? I don't get it: do you think something like newtwitter is badly designed because it uses faux-routes? If you don't have faux-routes then how can you easily insert links which will "go to page X" ?
Re:Announcing Backbone.js: Models, Collections and Views in ... by jashkenas on Thursday October 14, 2010 @08:54AM (#1790698)
Not at all -- hash-based URLs for Ajax applications are critical. They're just not something that you want to structure your entire application around, and Sammy is a framework that uses faux-URLs as the central abstraction.

All I'm saying is that you don't need to ape the server-side paradigm (one URL, one page) quite so closely. Use a module that gives you URL setting and tracking with "onhashchange", by all means, but you don't have to shoehorn your application into it.

Re:Announcing Backbone.js: Models, Collections and Views in ... by eloop on Monday October 18, 2010 @06:47PM (#1805467)
Thanks for that example. I was just wondering if you use any library for parsing the hash based URLs (another nice thing that sammy provides) ?
Re:Announcing Backbone.js: Models, Collections and Views in ... by jashkenas on Tuesday October 19, 2010 @10:50PM (#1809754)
We use something along these lines...

http://gist.github.com/624773