13.07.2015 Views

Modern Web Applications with Flask and Backbone.js

Modern Web Applications with Flask and Backbone.js

Modern Web Applications with Flask and Backbone.js

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MVCWhy do we need a client side MVCish solution?A simple list <strong>and</strong> a counter exampleClient side data manipulation using a model <strong>and</strong> mutiple viewsThe server sent only data, not html.The html is built by the views.ServerModelViewsJSONDATA5AJAXAfter a delete, the model is changed.The views Observe the model <strong>and</strong> updatethemselves after a change. The model isn't aware ofthe different views <strong>and</strong> their implementation.Code is easier to maintain.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!