{"id":11146,"date":"2015-05-05T09:17:08","date_gmt":"2015-05-05T13:17:08","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=11146"},"modified":"2015-05-05T09:17:08","modified_gmt":"2015-05-05T13:17:08","slug":"graduation","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2015\/05\/05\/graduation\/","title":{"rendered":"Graduation"},"content":{"rendered":"<p><a href=\"http:\/\/khanlou.com\/2015\/05\/graduation\/\">Soroush Khanlou<\/a>:<\/p><blockquote cite=\"http:\/\/khanlou.com\/2015\/05\/graduation\/\"><p>This move from method to object is sometimes awkward, since we&rsquo;re translating from a <em>verb<\/em> to a <em>noun<\/em>. It&rsquo;s necessary, though. This technique is a great one to hide complexity, and it can reveal abstractions that weren&rsquo;t apparent before.<\/p><p>[&#8230;]<\/p><p>We can keep extracting like this until we&rsquo;re satisfied. The class gets continually flattened and methods get continually shortened until it&rsquo;s sufficiently elegant. Any method inside here that&rsquo;s still too long and complex is subject to the same treatment of being hoisted from a method to a bona fide object.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Soroush Khanlou:This move from method to object is sometimes awkward, since we&rsquo;re translating from a verb to a noun. It&rsquo;s necessary, though. This technique is a great one to hide complexity, and it can reveal abstractions that weren&rsquo;t apparent before.[&#8230;]We can keep extracting like this until we&rsquo;re satisfied. The class gets continually flattened and methods [&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":[27,54,71,816],"class_list":["post-11146","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-craft","tag-objective-c","tag-programming","tag-refactoring"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/11146","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=11146"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/11146\/revisions"}],"predecessor-version":[{"id":11147,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/11146\/revisions\/11147"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=11146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=11146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=11146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}