{"id":18390,"date":"2017-07-19T15:40:35","date_gmt":"2017-07-19T19:40:35","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=18390"},"modified":"2017-07-19T15:40:35","modified_gmt":"2017-07-19T19:40:35","slug":"refactoring-reveals-truths","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2017\/07\/19\/refactoring-reveals-truths\/","title":{"rendered":"Refactoring Reveals Truths"},"content":{"rendered":"<p><a href=\"http:\/\/khanlou.com\/2017\/07\/refactoring-reveals-truths\/\">Soroush Khanlou<\/a>:<\/p>\n<blockquote cite=\"http:\/\/khanlou.com\/2017\/07\/refactoring-reveals-truths\/\">\n<p>The refactoring process helps eliminate these potential bugs and expose these enhancements by iteratively driving the complex towards the simple. Reducing the algorithm down to its barest form also helps you see how it&rsquo;s similar to other algorithms in your code base. These are all second-order effects, to be sure, but second-order effects pay off.<\/p>\n<p>[&#8230;]<\/p>\n<p>The algorithm has revealed its beautiful internal symmetry now. Very clear intent, very clear algorithm, and each component is simple. It&rsquo;s now more obvious how to tweak and modify this algorithm.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Soroush Khanlou: The refactoring process helps eliminate these potential bugs and expose these enhancements by iteratively driving the complex towards the simple. Reducing the algorithm down to its barest form also helps you see how it&rsquo;s similar to other algorithms in your code base. These are all second-order effects, to be sure, but second-order effects [&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,31,30,71,816,901],"class_list":["post-18390","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-ios","tag-mac","tag-programming","tag-refactoring","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18390","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=18390"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18390\/revisions"}],"predecessor-version":[{"id":18391,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18390\/revisions\/18391"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=18390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=18390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=18390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}