{"id":758,"date":"2016-07-23T20:20:36","date_gmt":"2016-07-23T20:20:36","guid":{"rendered":"https:\/\/einhugur.com\/blog\/?p=758"},"modified":"2016-07-24T21:48:13","modified_gmt":"2016-07-24T21:48:13","slug":"to-know-when-to-toss-your-items-or-code-when-things-have-gone-bad","status":"publish","type":"post","link":"https:\/\/einhugur.net\/blog\/index.php\/2016\/07\/23\/to-know-when-to-toss-your-items-or-code-when-things-have-gone-bad\/","title":{"rendered":"To know when to toss your items or code when things have gone bad."},"content":{"rendered":"<p>Yesterday I was working on new GPIO guide, and I was doing the wiring, nothing was working and I had tried 7 chips for the experiment, none of them behaved same and none of them behaved anywhere close to what I expected. Then I burnt my finger when touching the chip\u00a0and I realized that something was very wrong.<\/p>\n<p>The breadboard power supply had started\u00a0to put out 11.8 V instead of the expected 5V.<\/p>\n<p>So having been running on over voltage all resistors hot, all chips behaving wrong and overly hot then what do you do ?<\/p>\n<p>I was frustrated and was at first going to try to measure every single piece and then decide what to toss and what not. But luckily day after I had come to my senses. I think its built into us to try to preserve. What does it cost, the time to evaluate every component vs tossing them. And what does it cost to potentially have component in later experiment that might not behave as expected. So i tossed it all, chips, transistors, resistors, LED&#8217;s, everything.<\/p>\n<p>I think same lesson also often applies for code, we are to conservative on old code, to patch it even if it makes little sense instead of tossing it and make room for new and better code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday I was working on new GPIO guide, and I was doing the wiring, nothing was working and I had tried 7 chips for the experiment, none of them behaved same and none of them behaved anywhere close to what I expected. Then I burnt my finger when touching the chip\u00a0and I realized that something &hellip; <a href=\"https:\/\/einhugur.net\/blog\/index.php\/2016\/07\/23\/to-know-when-to-toss-your-items-or-code-when-things-have-gone-bad\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">To know when to toss your items or code when things have gone bad.<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pd75nk-ce","jetpack-related-posts":[{"id":304,"url":"https:\/\/einhugur.net\/blog\/index.php\/2015\/10\/21\/the-right-case-for-raspberry-pi\/","url_meta":{"origin":758,"position":0},"title":"The right case for Raspberry PI","date":"October 21, 2015","format":false,"excerpt":"I have had some trouble getting happy with cases for the Raspberries. One falls apart, one does to have hole to take out the SD card, but today I had chance to 3D print, so I tested printing this case here: It has a VESA mount to fasten it on\u2026","rel":"","context":"In \"Banana PI\"","img":{"alt_text":"IMG_0165","src":"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/IMG_0165.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":391,"url":"https:\/\/einhugur.net\/blog\/index.php\/2016\/01\/19\/switch-to-clang-on-linux-and-update-to-orange-pi-and-banana-pi-reviews\/","url_meta":{"origin":758,"position":1},"title":"Switch to clang on Linux and update to Orange PI and Banana PI reviews","date":"January 19, 2016","format":false,"excerpt":"I just wanted to touch a bit on it why were are updating our plugins to use CLang on Linux systems. Over the years its always been a issue of which runtime libraries users have had on their Linux installation, getting it to match what Xojo uses and then what\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":31,"url":"https:\/\/einhugur.net\/blog\/index.php\/2015\/09\/10\/next-set-to-boards-to-test-and-develop-xojo-arm-plugins-arrive\/","url_meta":{"origin":758,"position":2},"title":"Next set to boards to test and develop Xojo ARM plugins arrive","date":"September 10, 2015","format":false,"excerpt":"Next set of boards to develop and test arrived, this time it was Banana PI M2 and Orange PI 2. I had seen reviews on the web on the hardware, that soldering on the Orange PI was crude, but I found both boards to be flawless in every way as\u2026","rel":"","context":"In \"ARM\"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/IMG_0112-300x225.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":588,"url":"https:\/\/einhugur.net\/blog\/index.php\/2016\/05\/19\/588\/","url_meta":{"origin":758,"position":3},"title":"Comment system fixed","date":"May 19, 2016","format":false,"excerpt":"After months of struggling with the comment system not working for the blog and the GPIO guides then I think it has finally been fixed. Please report if it does not work for you.","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26,"url":"https:\/\/einhugur.net\/blog\/index.php\/2015\/09\/03\/26\/","url_meta":{"origin":758,"position":4},"title":"First Raspberry PI 2 boards arrive","date":"September 3, 2015","format":false,"excerpt":"First Raspberry PI 2 boards arrive. As Xojo Inc has published then Xojo 2015r3 will be supporting Raspberry PI ARM\u00a0compiles. So of course we are gearing up to support plugins for the Raspberry PI compiles. The first shipment arrived, which contained two regular Raspberry PI 2 boards. I had in\u2026","rel":"","context":"In \"ARM\"","img":{"alt_text":"","src":"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/RaspberryPi-300x225.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":407,"url":"https:\/\/einhugur.net\/blog\/index.php\/2016\/04\/05\/another-marathon-coding-weekend\/","url_meta":{"origin":758,"position":5},"title":"Another marathon coding weekend","date":"April 5, 2016","format":false,"excerpt":"Shortly after Xojo Inc will release their 2016r1 version then we will be pushing out DateControl 6.1 which has a number of fixes and tweaks some of which help users using the new drop down calendar mode on broader range of OS X versions.\u00a0We have had this version in open\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/04\/DateControlUbuntu.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/posts\/758"}],"collection":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=758"}],"version-history":[{"count":3,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/posts\/758\/revisions"}],"predecessor-version":[{"id":761,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/posts\/758\/revisions\/761"}],"wp:attachment":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}