{"id":1536,"date":"2007-06-21T22:29:43","date_gmt":"2007-06-22T01:29:43","guid":{"rendered":"http:\/\/www.hoogervorst.ca\/arthur\/?p=1536"},"modified":"2007-06-21T22:29:43","modified_gmt":"2007-06-22T01:29:43","slug":"copy-paste","status":"publish","type":"post","link":"http:\/\/www.hoogervorst.ca\/arthur\/?p=1536","title":{"rendered":"Copy, Paste."},"content":{"rendered":"<p><span class=\"dropcap\">V<\/span>ia something, I ran into this (online) sarcastic presentation about <a href=\"http:\/\/www.slideshare.net\/alessiopace\/copy-paste-modify-patterns-for-real-software-engineering\/\">Copy Paste Programming<\/a> (<a href=\"http:\/\/en.wikipedia.org\/wiki\/Copy_and_paste_programming\">Wikipedia<\/a>). A quick summary:\n<\/p>\n<p class=\"quote\">Best practices: Find the code, copy\/paste it, compile, enjoy!<br \/>\nPitfalls and workarounds: The copied\/pasted code does not compile. Copy\/Paste larger portion of code.\n<\/p>\n<p>This reminds me of an actual encounter many years ago, where I was called up by an analyst who was struggling with his code. Upon asking what was wrong, he said the code didn&#8217;t work and that it was someone else&#8217;s. When I inquired where he had the code from, he said he had it copied and pasted from an existing (and live) application. Right: the context. That wasn&#8217;t the worst part, though: when glancing over his design document I found out that it literally instructed him to &#8216;copy the code from this-and-that application&#8217;. I&#8217;m not sure who wrote up that document, but obviously someone was in a rush, which evidently came up when I asked the question why he would copy and paste a complete piece of code from another application.\n<\/p>\n<p>The answer he gave was solid gold.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Via something, I ran into this (online) sarcastic presentation about Copy Paste Programming (Wikipedia). A quick summary: Best practices: Find the code, copy\/paste it, compile, enjoy! Pitfalls and workarounds: The copied\/pasted code does not compile. Copy\/Paste larger portion of code. &hellip; <a href=\"http:\/\/www.hoogervorst.ca\/arthur\/?p=1536\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts\/1536"}],"collection":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1536"}],"version-history":[{"count":0,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts\/1536\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1536"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}