{"id":1153,"date":"2010-12-12T08:53:00","date_gmt":"2010-12-12T08:53:00","guid":{"rendered":"http:\/\/www.q-software-solutions.de\/blog\/?p=1153"},"modified":"2014-07-02T07:14:39","modified_gmt":"2014-07-02T07:14:39","slug":"could-not-resist","status":"publish","type":"post","link":"https:\/\/www.q-software-solutions.de\/blog\/2010\/12\/could-not-resist\/","title":{"rendered":"Could not resist"},"content":{"rendered":"<p>Now something completely unrelated to politics. As I wrote in my BIO I&#8217;m still a programmer (and I&#8217;ve to admit it&#8217;s programmer by heart). I have chosen this profession, probably it&#8217;s fits my taste. I like trying out things and I really like to &#8222;build&#8220; things.  I&#8217;ve now spend over 20 years with programming and still like it. Anyway I&#8217;ve learned quite a few lessons, and I come to appreciate a few authors, and approaches. There&#8217;s one principle in Ruby which I value very high. It&#8217;s named DRY (Don&#8217;t Repeat Yourself). I&#8217;m also a big fan of continuous shaping and improving one&#8217;s code (the technical term for it is &#8222;refactoring&#8220;) Anyway some of the software I ship does not hold this principle high. You can tell: &#8222;well go change it&#8220;. And I&#8217;ve to admit yes, I should. And well I do. But I found another acronym for that code. And I can not resist offering it here: RYWYC (Repeat<br \/>Yourself Wherever You Can ;-). The code is a sorry mess in that regard. There is code duplication beyond any means. But there is also one quality in it: &#8222;It mostly works&#8220;. Agreed there are still trouble spots, but there are astonishingly few. And I&#8217;m still able to fix them. But it&#8217;s not something one should be especially proud of. One could be proud if one cleans up this mess. However this software lacks other essential things also: Tests. and refactoring without tests is like brain surgery with a chain saw&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now something completely unrelated to politics. As I wrote in my BIO I&#8217;m still a programmer (and I&#8217;ve to admit it&#8217;s programmer by heart). I have chosen this profession, probably it&#8217;s fits my taste. I like trying out things and I really like to &#8222;build&#8220; things. I&#8217;ve now spend over 20 years with programming and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3974],"tags":[],"class_list":["post-1153","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"_links":{"self":[{"href":"https:\/\/www.q-software-solutions.de\/blog\/wp-json\/wp\/v2\/posts\/1153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.q-software-solutions.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.q-software-solutions.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.q-software-solutions.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.q-software-solutions.de\/blog\/wp-json\/wp\/v2\/comments?post=1153"}],"version-history":[{"count":0,"href":"https:\/\/www.q-software-solutions.de\/blog\/wp-json\/wp\/v2\/posts\/1153\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.q-software-solutions.de\/blog\/wp-json\/wp\/v2\/media?parent=1153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.q-software-solutions.de\/blog\/wp-json\/wp\/v2\/categories?post=1153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.q-software-solutions.de\/blog\/wp-json\/wp\/v2\/tags?post=1153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}