Re:Todos: a Backbone.js example Single-Page-App (with LocalS...
by mrchess on Tuesday October 26, 2010 @12:16PM
(#1834778)
Can you describe your experience with backbone? Now that you have built an app with it, do you recommend it? Or perhaps wait till it matures a little?
Re:Todos: a Backbone.js example Single-Page-App (with LocalS...
by jeromegn on Tuesday October 26, 2010 @01:12PM
(#1835049)
Since I'm no programming nor javascript wizard, I needed some help from Jeremy. I know my way around MVC since I've been doing some Ruby on Rails in my time.
My experience with more advanced Javascript is with MooTools, so I found it familiar to build Class-like objects. I rather enjoyed the experience and I'll be using it to replace the codebase for my more complex project.
The documentation is exhaustive and with that example app, annotated et al., it's even better. I also am very confident in Jeremy's skills as the project maintainer, he helped me a lot and has proven he creates great Javascript libraries.
The API seems stable enough. From Backbone 0.1.2 to 0.2, there weren't that many differences in the API, mostly nice additions.
Re:Todos: a Backbone.js example Single-Page-App (with LocalS...
by catch23 on Tuesday October 26, 2010 @01:54PM
(#1835265)
I've already used it for my admin app as well, and in the process submitted some patches to backbone as well. It's quite nice how unobtrusive it is. I wrote a small jquery plugin that converts a form & table into fully functional crud with client & server side validation.
Re:Todos: a Backbone.js example Single-Page-App (with LocalS...
by simonista on Tuesday October 26, 2010 @01:10PM
(#1835036)
It looks very nice. One small UI request, you should only be able to edit one existing item at a time, so if you are currently editing one item and you double click another item, the first should be committed.
Re:Todos: a Backbone.js example Single-Page-App (with LocalS...
by jashkenas on Tuesday October 26, 2010 @01:25PM
(#1835122)
I've updated the app to work that way -- nice idea. Here's the relevant change, for the curious:
http://documentcloud.github.com/backbone/docs/todos.html#sec...
Re:Todos: a Backbone.js example Single-Page-App (with LocalS...
by jeromegn on Tuesday October 26, 2010 @01:13PM
(#1835054)
Ah, that's a good one. I'll add that.
Re:Todos: a Backbone.js example Single-Page-App (with LocalS...
by desigooner on Tuesday October 26, 2010 @01:49PM
(#1835240)
also, while editing, if I double clicked to edit and clicked out for some reason, the changes are not committed yet.
I think the more intuitive way of doing it is adding some sort of a commit-on-click-out feature ..
With the help of jashkenas, I created this app to test my implementation of Backbone.js for MooTools (http://github.com/jeromegn/backbone-mootools) and my localStorage adapter (http://github.com/jeromegn/Backbone.localStorage for those interested). It just so happened that jashkenas had been aching for a decent example app, so he reported it to jQuery and included it in the repository.
My own version of this demo is available here (with an extra sorting feature, and built on MooTools) http://localtodos.com/ (source: http://github.com/jeromegn/localtodos)
Hope you like it.