Step by step from jQuery to Backbone
Is it just me, or did reasonable jQuery get refactored into broken code?  In the jQuery code, the status is added after the sever acknowledges receipt.  In the backbone code, you are adding an element rendering it to the page, and then the model is doing some automagic synchronization.  Unless there is some serious magic in the Backbone model, things can get completely out of sync.<p>This looks like one hell of a bastardization of MVC.  It seems the view is really a controller+view, and the model does the sync in a way that requires coupling the view to the model to handle any sort of error.<p>Edit: I could be wrong here, but can someone show me how to fix the Backbone code to handle an error correctly?  Error handling can be added to the jQuery code by adding 'error:function() { // do something simple },'