{"id":374551,"date":"2010-03-01T04:56:49","date_gmt":"2010-03-01T09:56:49","guid":{"rendered":"http:\/\/www.nikhilk.net\/Entry.aspx?id=253"},"modified":"2010-03-01T04:56:49","modified_gmt":"2010-03-01T09:56:49","slug":"the-case-for-viewmodel","status":"publish","type":"post","link":"https:\/\/mereja.media\/index\/374551","title":{"rendered":"The Case for ViewModel"},"content":{"rendered":"<p>One of the comments I got on my last post on <a href=\"http:\/\/www.nikhilk.net\/View-ViewModel-Hookup-Convention-Configuration.aspx\">view\/view model hookup options<\/a> was the following:<\/p>\n<blockquote><p>I&#8217;ve been a mvvm fan but actually when I see all the hoops to jump through I wonder at times how effective this is<\/p><\/blockquote>\n<p>So I wanted to take a moment to list what I thought compelled me to adopt the ViewModel pattern of client application development (so much so, that I now feel odd writing Silverlight and sometimes even Ajax apps in any other way). Some will be obvious benefits, especially to those already using MVVM in their everyday development, but I want to throw in a couple that are farther out exploratory ideas that I am thinking about. I&#8217;d also love to pursue what it means to make view model more mainstream, so if you&#8217;ve got ideas on this topic of &quot;Why ViewModel&quot;, I&#8217;d love to hear.<\/p>\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"http:\/\/www.nikhilk.net\/Content\/Posts\/SilverlightViewModel\/MVVM.png\" alt=\"ViewModel Pattern\" \/><\/p>\n<p>The often cited benefit is increased testability of additional code within the application, and I&#8217;ll get to that, but I think there are some other benefits that are more applicable, considering not everyone practices the rigor of the level of testing we&#8217;re talking about here. Essentially, testability is not a justification for the ViewModel pattern on its own.<\/p>\n<p>[<a href=\"http:\/\/www.nikhilk.net\/Why-ViewModel.aspx\">Full post continued here&#8230;<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the comments I got on my last post on view\/view model hookup options was the following: I&#8217;ve been a mvvm fan but actually when I see all the hoops to jump through I wonder at times how effective this is So I wanted to take a moment to list what I thought compelled [&hellip;]<\/p>\n","protected":false},"author":555,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-374551","post","type-post","status-publish","format-standard","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts\/374551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/users\/555"}],"replies":[{"embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/comments?post=374551"}],"version-history":[{"count":0,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts\/374551\/revisions"}],"wp:attachment":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/media?parent=374551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/categories?post=374551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/tags?post=374551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}