{"id":45,"date":"2005-10-23T12:00:08","date_gmt":"2005-10-23T16:00:08","guid":{"rendered":"http:\/\/www.rakkar.org\/blog\/?p=45"},"modified":"2005-10-23T12:00:08","modified_gmt":"2005-10-23T16:00:08","slug":"the-devil-is-in-the-details","status":"publish","type":"post","link":"https:\/\/rakkar.org\/blog\/index.php\/2005\/10\/23\/the-devil-is-in-the-details\/","title":{"rendered":"The devil is in the details"},"content":{"rendered":"<p>\t\t\t\tI just finished adding the ability to read double clicks.  There&#8217;s a lot of little things you have to consider:<\/p>\n<ol>\n<li>You have to click the same button twice, not two different buttons rapidly in a row<\/li>\n<li>You have to account for mouse drift of a few pixels from the last click location<\/li>\n<li>Triple clicks should not count as two double clicks<\/li>\n<\/ol>\n<p>The reason this is noteworthy is that it&#8217;s a good example of how trying to write TDDs that handle every detail of the code is impossible because normal people don&#8217;t think at that level of detail.  I was watching this show about autistic people and how some of them remember all the small details they see if you let them glance at a room.  A normal person doesn&#8217;t because they are bombarded with information and the brain filters out most of it.<\/p>\n<p>This is why I take the approach &#8220;Write what you know, refactor what you don&#8217;t.&#8221;  This is totally opposite the concept of high level design.<\/p>\n<p>It&#8217;s also why, when you ask for a spec from a customer, the spec invariably misses out on details.  Programmers are trained to do this sort of work and forget things.  What can you expect from a customer who probably barely knows how to open Word?  Extreme programming accounts for this by involving the customer in the design and implementation process which sounds like a good approach.\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just finished adding the ability to read double clicks. There&#8217;s a lot of little things you have to consider: You have to click the same button twice, not two different buttons rapidly in a row You have to account for mouse drift of a few pixels from the last click location Triple clicks should [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/45"}],"collection":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":0,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"wp:attachment":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}