{"id":13669,"date":"2016-02-23T11:44:58","date_gmt":"2016-02-23T16:44:58","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=13669"},"modified":"2016-02-23T11:44:58","modified_gmt":"2016-02-23T16:44:58","slug":"write-code-that-is-easy-to-delete","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2016\/02\/23\/write-code-that-is-easy-to-delete\/","title":{"rendered":"Write Code That Is Easy to Delete"},"content":{"rendered":"<p><a href=\"http:\/\/programmingisterrible.com\/post\/139222674273\/write-code-that-is-easy-to-delete-not-easy-to\">tef<\/a> (via <a href=\"https:\/\/twitter.com\/buzz\/status\/701637454969839617\">Buzz Andersen<\/a>):<\/p>\n<blockquote cite=\"http:\/\/programmingisterrible.com\/post\/139222674273\/write-code-that-is-easy-to-delete-not-easy-to\">\n<p>Every line of code written comes at a price: maintenance. To avoid paying for a lot of code, we build reusable software. The problem with code re-use is that it gets in the way of changing your mind later on.<\/p>\n<p>[&#8230;]<\/p>\n<p>If we see &lsquo;lines of code&rsquo; as &lsquo;lines spent&rsquo;, then when we delete lines of code, we are lowering the cost of maintenance. Instead of building re-usable software, we should try to build disposable software.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>tef (via Buzz Andersen): Every line of code written comes at a price: maintenance. To avoid paying for a lot of code, we build reusable software. The problem with code re-use is that it gets in the way of changing your mind later on. [&#8230;] If we see &lsquo;lines of code&rsquo; as &lsquo;lines spent&rsquo;, then [&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,71],"class_list":["post-13669","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-craft","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/13669","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=13669"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/13669\/revisions"}],"predecessor-version":[{"id":13670,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/13669\/revisions\/13670"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=13669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=13669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=13669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}