{"id":33,"date":"2007-02-22T04:21:19","date_gmt":"2007-02-22T09:21:19","guid":{"rendered":"https:\/\/billhiggins.us\/weblog\/2007\/02\/22\/disciplined-laziness\/"},"modified":"2007-02-22T04:21:19","modified_gmt":"2007-02-22T09:21:19","slug":"disciplined-laziness","status":"publish","type":"post","link":"https:\/\/billhiggins.us\/blog\/2007\/02\/22\/disciplined-laziness\/","title":{"rendered":"disciplined laziness"},"content":{"rendered":"<p>The other day, I thought of a clever solution to speed up an important <a href=\"http:\/\/jazz.net\/\" title=\"Jazz.net\">Jazz<\/a> function by perhaps 20-40% (depending on a set of environmental factors).  I eagerly documented the solution in a bug report and CC&#8217;d several teammates.  Several times over the past week, I almost went ahead and just coded the solution, because I was so happy with its cleverness.<\/p>\n<p>But I haven&#8217;t done this.<\/p>\n<p>Fortunately for users but unfortunately for my idea, the function in question already runs as fast (1-4 seconds) as users expect it to run, given the nature of the function.\u00c2\u00a0 So although the 20-40% improvement is certainly <em>relatively<\/em> significant, it isn&#8217;t of any practical significance to users.\u00c2\u00a0 After all, who cares if something that currently runs in a &#8216;speedy&#8217; 2 seconds were reduced to 1.5 seconds?<\/p>\n<p>So it&#8217;s been with great discipline (and a bit of angst) that I&#8217;ve abstained from writing this clever code, basically because of the <a href=\"http:\/\/en.wikipedia.org\/wiki\/YAGNI\" title=\"Wikipedia: Yout Ain't Gonna Need It\">YAGNI principle<\/a>, which the team as a whole rigorously observes.\u00c2\u00a0 The benefits (0.2 &#8211; 1.6 second reduced response time) simply don&#8217;t justify these costs:<\/p>\n<ul>\n<li>time to implement<\/li>\n<li>time to test<\/li>\n<li>potential defects (the current implementation has been stable for six months)<\/li>\n<li>increased complexity (it&#8217;s clever, you know)<\/li>\n<li>opportunity cost of not doing other work which <em>is<\/em> of practical use to users (backlogged enhancement requests, UI\/UX improvements, bug fixes)<\/li>\n<\/ul>\n<p>The reason I bring this up is because it demonstrates the powerful temptation to implement a clever or elegant solution <em>despite<\/em> the fact that it lacks a compelling problem.\u00c2\u00a0  I consider YAGNI to be a fundamental principle of my personal development philosophy, yet I <em>still<\/em> found myself tempted to implement the solution once I had fallen in love with its cleverness and efficiency.<\/p>\n<p>So &#8230; I&#8217;ll be patient for now and my solution will remain unimplemented, but documented in a bug report.\u00c2\u00a0 If, over time, other system factors cause the response time to degrade, <em>perhaps<\/em> the solution&#8217;s value may increase enough to justify its costs.<\/p>\n<p>Or not.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The other day, I thought of a clever solution to speed up an important Jazz function by perhaps 20-40% (depending on a set of environmental factors). I eagerly documented the solution in a bug report and CC&#8217;d several teammates. Several times over the past week, I almost went ahead and just coded the solution, because [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6,10],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-culture","category-design","category-jazz"],"_links":{"self":[{"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":0,"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"wp:attachment":[{"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}