ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
MVVM IRL
What is MVVM?
The promise of MVVM
A declarative way to do applications

Very little code
Fast application development
What does the model do?
What does the view do?
What does the view-model do?
What does the binder do?
Simple right?
How to do it the wrong way
Fat view-model
Code in the view
Code in the view
Code in the view
Code in the view
!MVC with data-binding
Takeaways
Very little code

Fast application development
If it’s not declarative, you’re doing it wrong
Support
Windows phone code samples from:
https://github.com/linkerro/CodeCamp
Knockout tutorials:
http://learn.knockoutjs.com/#/?tutorial=intro

More Related Content

MVVM IRL

Editor's Notes

  • #5: Hold the data (standard Data Transfer Objects)Hold the validation info (attributes)
  • #6: The view sits there and looks nice
  • #7: It acts as a one-on-one model for the viewIt is a declarative way to say that these things from the model map to those things in the view
  • #8: Does all the hard work of moving things from the view-model to the model, so you don’t have to write enormous amounts of events and stuff.
  • #11: Put data access, validation, business logic and the kitchen sink in the view-model.Analogous to the Fat controller anti-pattern
  • #12: This applies to all MV* patternsThis is the way to make sure that you have state of the art spaghetti code
  • #16: Happens when developers experienced in MVC forget that MVVM is mostly declarativeTry to let the binder do all the stuff