This repository has been archived on 2017-04-03. You can view files and clone it, but cannot push or open issues/pull-requests.
blog_post_tests/20110624000322.blog

18 lines
6.6 KiB
Plaintext

Will software ever be engineering?
<p>One of my commenters pointed me at an article by John Sonmez over at ElegantCode, <a href="http://elegantcode.com/2011/06/22/why-software-development-will-never-be-engineering/#comments">Why Software Development Will Never be Engineering</a>. The article makes one very shrewd, well-argued point, but then disappointingly fails to build on it. Read it and see if you spot the problem before I analyze.</p>
<p><span id="more-3345"></span></p>
<p>I want to start by praising Mr. Sonmez for very logically and thoroughly arguing against a common kind of excuse-making. Often, when software engineers are asked why software engineering doesn&#8217;t have the reliability rates of, for example, bridge-building, the answer is: well, the discipline hasn&#8217;t had time to mature yet. </p>
<p>Sonmez observes that we humans have built a lot more software in the last 40 years than bridges in all of recorded history. His underlying point &#8211; which he makes very well by looking at how online play has terrifically accelerated the evolution of poker &#8211; is that in thinking about time to maturity in a discipline, cumulative hours of practice by humans matters more than the number of calendar years the techniques have been practiced. In terms of human practice time (Sonmez argues) software engineering has actually had at least as much time to mature as bridge-building.</p>
<p>I could quibble with this argument if I wanted to. The degree to which more people in a discipline can speed up its evolution is limited by the speed with which they can learn from each other in each round. There&#8217;s a diminishing-returns effect from adding more practitioners in parallel; it&#8217;s a lot like (and may actually be formally identical to) the <a href="http://en.wikipedia.org/wiki/Amdahl%27s_law">Amdahl&#8217;s Law</a> limit on speedup from processor parallelism.</p>
<p>But I think that really would be just a quibble, and that Sonmez&#8217;s underlying point about comparative evolutionary times is basically sound. And I wish he had stopped there, because it is just after this point that his reasoning goes all to hell and handwaves.</p>
<p>Before I get to dissecting that part, I&#8217;m going to note one startling detail that is orthogonal to Sonmez&#8217;s main arguments. At one point, as an example of change in the methods of software engineering, Sonmez says &#8220;Ten years ago waterfall was all the rage.&#8221; an assertion to which I can best sum up my reaction by quoting P.J. O&#8217;Rourke&#8217;s immortal words from <cite>Parliament of Whores</cite>, to wit: &#8220;What the fuck? I mean&#8230;what the fucking fuck?&#8221;</p>
<p>Here in the land of open source, <a href="http://en.wikipedia.org/wiki/Waterfall_model">waterfall development</a> has been considered a form of doomed, brain-damaged idiocy as long as I can remember, let alone &#8220;as recently as ten years ago&#8221;. I suppose I could take Sonmez&#8217;s aside as a pleasing confirmation that my peers and I were ahead of the curve, but in fact my reaction is of gobsmacked shock at the thought that his peers were that far behind it. It gives me a suspicion that most of the software out there is actually far worse than I realized, a sort of nauseous sinking feeling.</p>
<p>But that&#8217;s not what I&#8217;m here to write about this fine evening. It&#8217;s probably not mostly Sonmez&#8217;s fault that he lives in a cultural surround where &#8220;ten years ago waterfall was all the rage&#8221;. It <em>is</em> his fault that, having constructed a lovely argument against one of the standard excuses for shoddy software engineering, he immediately begins failing even basic logic immediately thereafter.</p>
<p>Sonmez wants to argue that, since both disciplines have had comparable times to mature, the fact that they don&#8217;t have comparable error rates means software is fundamentally unlike bridge-building. But he has neglected to exclude the simplest possibility: that they are fundamentally alike, but the differing error rates are a consequence of differing complexity scales.</p>
<p>OK, so what do I mean when I say &#8220;they are fundamentally alike&#8221;? They are both disciplines in which the local behavior of components is usually simple and easily mentally modeled by a designer. The complexity, in both cases, generally comes from long-range couplings among parts that may interact with each other in unexpected ways. This is a hard distinction from, for example, biology &#8211; in which, basically, there are <em>no</em> simple components at any level. </p>
<p>I didn&#8217;t choose biology as a contrast at random. Sonmez appears to think that software engineers are more like surgeons. But that assertion just sort of hangs in the air; not only doesn&#8217;t Sonmez actually argue for it, he never even tells us what he thinks it <em>means</em>, beyond some poetic handwaving about software systems being &#8220;unruly beasts&#8221; and &#8220;keeping it alive&#8221;. Really, I could say &#8220;Software engineers are like blinching flugletharps&#8221; and convey exactly the same amount of information, which is to say none at all. What up, does Sonmez want us to wear scrubs and facemasks when we code? What&#8217;s the actual point of the metaphor, here?</p>
<p>The sad part is I don&#8217;t think Sonmez really has one. Yes, software has to be maintained. So do bridges, and taking a busily-traveled thoroughfare out of service for repairs has opportunity costs so high that it&#8217;s not done a lot more often than taking a large software system out of service for repair.</p>
<p>Now, it could be that the &#8220;fundamentally alike&#8221; case is wrong and that software is more fruitfully viewed as being like biology. The trouble is that Sonmez never gives us any reason to believe that. Everything after his <b>&#8220;Software development is different&#8221;</b> heading is pure handwaving. And, after the buildup, very disappointing.</p>
<p>I don&#8217;t think I know for sure whether or not software engineering is fundamentally different from bridge-building. But it&#8217;s a thesis I&#8217;m suspicious of precisely because it would in many ways be very comforting, almost an implicit excuse for our dreadful error rates. Sonmez isn&#8217;t doing us any favors by making a bad argument for the proposition, and he might not be helping matters even if it were a good one.</p>
<p>UPDATE: My wife the attorney acidly points out yet another way in which Sonmez&#8217;s argument is flawed and unhelpful. &#8220;If surgeons had the failure rate of software engineers,&#8221; she observes, &#8220;they&#8217;d all be in jail.&#8221;</p>