{"id":32,"date":"2004-01-14T19:58:12","date_gmt":"2004-01-14T19:58:12","guid":{"rendered":"http:\/\/localhost:8000\/?p=32"},"modified":"2004-01-14T19:58:12","modified_gmt":"2004-01-14T19:58:12","slug":"basic-troubleshooting-rules","status":"publish","type":"post","link":"https:\/\/blog.gwadej.org\/programmer-musings\/2004\/01\/basic-troubleshooting-rules\/","title":{"rendered":"Basic troubleshooting rules"},"content":{"rendered":"<p>Here are a few basic rules of troubleshooting and debugging.<\/p>\n<ol>\n<li>Divide and conquer (always)<\/li>\n<li>50\/50 tests are best<\/li>\n<li>Verify can&#8217;t happen cases with a test<\/li>\n<li>Steady progress is better than random guessing<\/li>\n<li>If you guess and fail, go back to #1. Don&#8217;t try to keep guessing.<\/li>\n<\/ol>\n<p>I&#8217;ve been trying to formulate a good set of troubleshooting and debugging rules for years. Ever since I was training entry-level programmers and realized that I couldn&#8217;t always explain how I found a problem or spotted a bug.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here are a few basic rules of troubleshooting and debugging. Divide and conquer (always) 50\/50 tests are best Verify can&#8217;t happen cases with a test Steady progress is better than random guessing If you guess and fail, go back to #1. Don&#8217;t try to keep guessing. I&#8217;ve been trying to formulate a good set of\u2026 <span class=\"read-more\"><a href=\"https:\/\/blog.gwadej.org\/programmer-musings\/2004\/01\/basic-troubleshooting-rules\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[105,329,343,345],"_links":{"self":[{"href":"https:\/\/blog.gwadej.org\/programmer-musings\/wp-json\/wp\/v2\/posts\/32"}],"collection":[{"href":"https:\/\/blog.gwadej.org\/programmer-musings\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gwadej.org\/programmer-musings\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gwadej.org\/programmer-musings\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gwadej.org\/programmer-musings\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":0,"href":"https:\/\/blog.gwadej.org\/programmer-musings\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.gwadej.org\/programmer-musings\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gwadej.org\/programmer-musings\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gwadej.org\/programmer-musings\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}