{"id":7649,"date":"2013-07-30T15:23:25","date_gmt":"2013-07-30T20:23:25","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=7649"},"modified":"2013-07-30T15:23:25","modified_gmt":"2013-07-30T20:23:25","slug":"reactiveviewmodel","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2013\/07\/30\/reactiveviewmodel\/","title":{"rendered":"ReactiveViewModel"},"content":{"rendered":"<p>The <a href=\"https:\/\/github.com\/ReactiveCocoa\">ReactiveCocoa<\/a> project has a good <a href=\"https:\/\/github.com\/ReactiveCocoa\/ReactiveViewModel\/blob\/30d3d4c830ee366196fda84c48cca0f31d1c4be4\/README.md\">description<\/a> of the Model-View-ViewModel design pattern:<\/p>\n<blockquote cite=\"https:\/\/github.com\/ReactiveCocoa\/ReactiveViewModel\/blob\/30d3d4c830ee366196fda84c48cca0f31d1c4be4\/README.md\"><p>Although it seems similar to MVC (except with a &ldquo;view model&rdquo; object in place of the controller), there&rsquo;s one major difference &mdash; the view owns the view model. Unlike a controller, a view model has no knowledge of the specific view that&rsquo;s using it.<\/p><\/blockquote>\n<p>This makes the view-related code easier to reuse and test.<\/p>","protected":false},"excerpt":{"rendered":"<p>The ReactiveCocoa project has a good description of the Model-View-ViewModel design pattern: Although it seems similar to MVC (except with a &ldquo;view model&rdquo; object in place of the controller), there&rsquo;s one major difference &mdash; the view owns the view model. Unlike a controller, a view model has no knowledge of the specific view that&rsquo;s using [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[69,373,54,74,71,341],"class_list":["post-7649","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-mvvm","tag-objective-c","tag-opensource","tag-programming","tag-reactivecocoa"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=7649"}],"version-history":[{"count":0,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7649\/revisions"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=7649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=7649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=7649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}