{"id":258,"date":"2007-11-23T07:23:13","date_gmt":"2007-11-23T07:23:13","guid":{"rendered":"http:\/\/kubasek.com\/blog\/pragmatic_craftsman\/?p=258"},"modified":"2007-11-23T07:23:13","modified_gmt":"2007-11-23T07:23:13","slug":"values-for-excellence-in-programming","status":"publish","type":"post","link":"https:\/\/pragmaticcraftsman.kubasek.com\/2007\/11\/23\/values-for-excellence-in-programming\/","title":{"rendered":"Values for Excellence in Programming"},"content":{"rendered":"<p>I am reading Kent Beck&#8217;s book Implementation Patterns (which is great so far) and he talks about three values that are consistent with excellence in programming: communication, simplicity, and flexibility.<\/p>\n<p>Kent put it so well, and these values are so timeless&#8230; that I had to write about it.<\/p>\n<p><strong>Communication<\/strong>&#8220;Code communicates well when a reader can understand it, modify it, or use it,&#8221; Beck writes.<\/p>\n<p>Programming for the computer works fine. For the computer! Not for the person modifying it. &#8220;Good things happen when I think of others while I program,&#8221; Kent writes. Program for the other person!<\/p>\n<p>But who cares? I just want to write the code as fast as possible and be done with it. Wrong! Beck writes, &#8220;The majority of the cost of software is incurred after the software has been first deployed.&#8221; From Kent&#8217;s experience, he sees that he spends much more time reading the existing code, than writing new code. And that&#8217;s a fact! Is your experience different?<\/p>\n<p>When you think &#8220;How would someone else see this?,&#8221; you see your code from a perspective of another person.<\/p>\n<p><strong>Simplicity<\/strong>Why would you make your code simple? For economic reasons, of course. &#8220;Eliminating excess complexity enables those reading, using, and modifying programs to understand them more quickly,&#8221; writes Beck.<\/p>\n<p>A little complexity is unavoidable. How much? It depends who your audience is. But Kent puts it perfectly, &#8220;Challenging your audience a little is fine, but too much complexity will lose them.&#8221;<\/p>\n<p>&#8220;Pursuing simplicity enables innovation.&#8221; I can&#8217;t agree more with Kent.<\/p>\n<p><strong>Flexibility<\/strong>Programs should be easy to change. Simplicity can encourage flexibility. Enhancing the communicability of software also adds to flexibility.<\/p>\n<p>The bottom line: create simple, understandable applications that can easily be changed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am reading Kent Beck&#8217;s book Implementation Patterns (which is great so far) and he talks about three values that are consistent with excellence in programming: communication, simplicity, and flexibility. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-258","post","type-post","status-publish","format-standard","hentry","category-better-coder"],"_links":{"self":[{"href":"https:\/\/pragmaticcraftsman.kubasek.com\/wp-json\/wp\/v2\/posts\/258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pragmaticcraftsman.kubasek.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pragmaticcraftsman.kubasek.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pragmaticcraftsman.kubasek.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pragmaticcraftsman.kubasek.com\/wp-json\/wp\/v2\/comments?post=258"}],"version-history":[{"count":0,"href":"https:\/\/pragmaticcraftsman.kubasek.com\/wp-json\/wp\/v2\/posts\/258\/revisions"}],"wp:attachment":[{"href":"https:\/\/pragmaticcraftsman.kubasek.com\/wp-json\/wp\/v2\/media?parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pragmaticcraftsman.kubasek.com\/wp-json\/wp\/v2\/categories?post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pragmaticcraftsman.kubasek.com\/wp-json\/wp\/v2\/tags?post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}