tag:blogger.com,1999:blog-8424060401701893376.post780338124898600545..comments2024-03-05T15:31:35.897+00:00Comments on Crafted Software: Bad Code: The Invisible ThreatSandro Mancusohttp://www.blogger.com/profile/02110812790722611225noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8424060401701893376.post-54379829736692012982011-07-15T10:48:20.894+01:002011-07-15T10:48:20.894+01:00Great article.
I think you've hit some crucial...Great article.<br />I think you've hit some crucial points there.<br /><br />Also, there's a small typo in the text - loose should be lose.Ronhttps://www.blogger.com/profile/18412573435055827731noreply@blogger.comtag:blogger.com,1999:blog-8424060401701893376.post-50765862084221825162010-09-28T09:56:37.347+01:002010-09-28T09:56:37.347+01:00I love the gardening analogy - very apt. I think i...I love the gardening analogy - very apt. I think it'd be interesting to explain how something that doesn't change (code) can still rot / get out of control in the same way that an organic garden does. It *does*, I struggle to explain *how* - if nothing's changed, how come a year later its a steaming pile?<br /><br />I keep hearing the phrase "software factory" here - as though our job is to churn out as much code as possible. "Measuring software productivity by lines of code is like measuring aircraft design by weight"<br /><br />Requesting time to refactor is surely an organisational anti-pattern. The business people here tell me they assume that its just something we do - they assume that we keep the code as clean as it needs to be. I think we should stop surfacing these implementation details. Would we ask for explicit time to write unit tests any more?<br /><br />Finally, to contradict all of that: clean code can be a business decision. If there is a commercial need to be out fast, whatever the cost, then that is a valid decision. The danger is when companies / projects allow the code to get out of control without really considering the impact it has.<br /><br />I think this comes back to my first point - it is very difficult, I find, to explain the long term cost code cleanliness has. I have a gut instinct for it, but surfacing that decision to the business always leads to choosing speed over clean code.Anonymousnoreply@blogger.com