{"id":150,"date":"2003-01-02T13:57:59","date_gmt":"2003-01-02T18:57:59","guid":{"rendered":"\/?p=150"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-30T04:00:00","slug":"deleting_code","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2003\/01\/02\/deleting_code\/","title":{"rendered":"Deleting Code"},"content":{"rendered":"Ned Batchelder has a nice little article about <a href=\"http:\/\/www.nedbatchelder.com\/text\/deleting-code.html\">deleting code<\/a>. I agree completely; I hate seeing lots of old code that&rsquo;s in the file for some unknown reason. Version control rules. <a href=\"http:\/\/www.cvshome.org\/\">CVS<\/a> is a bit clunky, but it has a great practical advantage over (technically) slicker solutions like <a href=\"http:\/\/www.atpm.com\/7.03\/voodoo-personal.shtml\">VOODOO<\/a>: it stores everything in a very low-tech way so that you can break the abstraction barrier when there&rsquo;s no tool to do what you want. In this case, it&rsquo;s sometimes useful to be able to open the <tt>,v<\/tt> file in BBEdit and search for fragments of deleted code.","protected":false},"excerpt":{"rendered":"<p>Ned Batchelder has a nice little article about deleting code. I agree completely; I hate seeing lots of old code that&rsquo;s in the file for some unknown reason. Version control rules. CVS is a bit clunky, but it has a great practical advantage over (technically) slicker solutions like VOODOO: it stores everything in a very [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"","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":[],"class_list":["post-150","post","type-post","status-publish","format-standard","hentry","category-programming-category"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/150","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":0,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}