What is good/bad code? An illustrated example for non-programmers
<p>I once read a quote somewhere that basically had the following content:</p>
<blockquote>
<p>“The lives of many people in the modern world depend on software, such as that which controls flight systems in large commercial airliners, and yet the field of software development is mostly unregulated. Anybody can become a self-taught software developer, and there are none of the certifications or rigors in place as there are for other high-stakes professions, such as sky-rise architecture or neurosurgery. It is a <strong>dangerously unregulated field</strong>, as a few lines of <strong>bad code</strong> could literally cause a loss of life, depending on the circumstances.</p>
</blockquote>
<p>I seem to remember that this was in some kind of mainstream publication. The theme of the article, I guess, was “<em>Watch out for bad code, it can kill you, oh, but wait, it’s invisible so never mind!</em>” Certainly a soothing message for readers, don’t you think? Seems in retrospect that the article was simply trying to sensationalize the lurking presence of ‘bad code’ in the airliners, trains, and self-driving cars that increasingly surround us, and thus increase readership.</p>
<h1>So what is ‘Bad Code’, as a layperson?</h1>
<p>As a person who writes, reviews and <em>refactors</em> code (meaning, <em>to re-write in a more concise and usable fashion</em>) for about 5 hours a day, I know what code is (and what bad code is, believe you me!). I sometimes lose sight of the fact that many people<strong> don’t</strong> have a concept of what code is.</p>
<p><a href="https://medium.com/@todbotts.triangles/what-is-good-bad-code-an-illustrated-example-for-non-programmers-1222b600a0f0">Website</a></p>