{"id":508,"date":"2018-04-27T02:38:35","date_gmt":"2018-04-27T02:38:35","guid":{"rendered":"http:\/\/bruceng.com\/dev\/?p=508"},"modified":"2018-04-27T02:40:33","modified_gmt":"2018-04-27T02:40:33","slug":"how-to-save-time-in-implementing-a-new-feature","status":"publish","type":"post","link":"https:\/\/bruceng.com\/dev\/?p=508","title":{"rendered":"How to save time in implementing a new feature"},"content":{"rendered":"<p>Recently I have found that I could have been more efficient than how I was doing, my approach of diving straight into the code to implement the feature and then keep refining later works, but takes quite some time.<\/p>\n<p>The problem is, every time I make a change, I have to test to make sure it doesn&#8217;t break anything, this caused me to test multiple times as I experimented to make my solution work. I have found that it would save more time if I do all the implementation first, then test.<\/p>\n<p>It would save more time if I write down a list of test cases and mark each as done after I have tested. So I won&#8217;t forget what I have tested and can be sure that those cases work.<\/p>\n<p>Also, if possible, write unit tests so tests can be executed automatically quickly in place of manual testing.<\/p>\n<p>So I came up with the following flow, maybe it will be faster.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-509\" src=\"http:\/\/bruceng.com\/dev\/wp-content\/uploads\/2018\/04\/workflow-147x300.png\" alt=\"\" width=\"312\" height=\"637\" srcset=\"https:\/\/bruceng.com\/dev\/wp-content\/uploads\/2018\/04\/workflow-147x300.png 147w, https:\/\/bruceng.com\/dev\/wp-content\/uploads\/2018\/04\/workflow.png 240w\" sizes=\"auto, (max-width: 312px) 85vw, 312px\" \/><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I have found that I could have been more efficient than how I was doing, my approach of diving straight into the code to implement the feature and then keep refining later works, but takes quite some time. The problem is, every time I make a change, I have to test to make sure &hellip; <a href=\"https:\/\/bruceng.com\/dev\/?p=508\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to save time in implementing a new feature&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-508","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=508"}],"version-history":[{"count":2,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/508\/revisions"}],"predecessor-version":[{"id":511,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/508\/revisions\/511"}],"wp:attachment":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}