Another week, another two chapters from Robert C. Martin’s The Clean Coder. This weeks installment were chapter’s 11 and 12 which were entitled “Pressure” and “Collaboration” respectively. They combined for eighteen pages of fluff. Each contained the signature Bobby Marty anecdote which ate up a large portion of both chapters. In my last post about The Clean Coder I said that I was starting to enjoy his chapters. I guess I spoke too soon.
So chapter 11 was about pressure. Martin writes about avoiding pressure and handling pressure. I found it interesting that Martin thinks maintaining discipline is both a way to avoid pressure and to handle pressure. He uses TDD as an example. The problem with TDD is that it is time consuming. Not only do you have to think of the code you need to write, but you need to write tests that the code will eventually need to pass. This means that you will be writing twice as much. His idealistic position on deadlines is unrealistic. Sometimes you need to make adjustments in order to make deadlines, and in those cases, disciplines must adapt. TDD may be the best way to do something, but sometimes sacrifices must be made.
Chapter 12 was about collaboration. It is asinine to resist collaboration for the greatest accomplishments have not been achieved by a single person, but a group of people. The overall message of this chapter is that working with other people is important, and I don’t think that many people would disagree with that. I found his section on cerebellums to be superfluous and poorly labeled. Cerebellum has very little to do out of the context of that billboard he read, and thusly carries little weight outside of that chapter. I also found that his take on collective ownership interesting. I feel as though it needs a qualifier. Collective ownership is certainly the best way to go, IF and only IF you can trust the people you are working with AND you are using a version control system.
From the blog cs443 – TayNock's Blog by taynock and used with permission of the author. All other rights reserved by the author.