I continued reading The Clean Coder by Robert C. Martin this week. This blog post centers around the content of chapters three and four. The majority of chapter three is actually an article by Roy Osherove entitled, A Language of Commitment. The main theme of Osherove’s article is the three parts of making a commitment, which are, “you say you’ll do it,” “you mean it,” and “you actually do it.” Essentially he is speaking to following through with your promises. Osherove also speaks to signs of noncommitment, such as using words like “need,” “should,” “hope,” “wish,” or “let’s.” He says that a real commitment follows a structure like, “I will … by …” At the end of the chapter, Martin summarizes Osherove’s points, and puts it in terms of professionals. This chapter was pretty straight forward and I can’t say that I disagree with the message.
Martin entitles his fourth chapter “Coding” but if you were hoping to find some code, then you will only find disappointment. This chapter centers mostly on when you should not write code, how you are probably using bad practice while coding, and how you should mitigate expectations. Personally, I think a more proper title for this chapter would be “Negative Nancy’s Guide to Why You Suck at Coding.” First of all, this chapter begins with a section called “Preparedness” but I do not see the relevance to the material in the section. Martin describes the necessary elements of code, and then he talks about concentration. He then describes a plethora of different distractions and advises the aspiring professional programmer not to get distracted. On a side note, I found it interesting that Martin suggests that a programmer should put in eight solid hours a day instead of attempting to code for longer. I found this interesting because in chapter one he suggests that you should commit at least 60 hours a week to your career. If you only code for eight hours a day, seven days a week, that only equates to 56 hours. For someone who claims to be a great professional programmer, I find his basic math skills lacking.
Well, I am now 76 pages into this textbook, only 109 more pages to go. I’m not saying that this is the worst text I have ever read, and it has certainly given me something to write about, but I am certainly finding The Clean Coder to be far more idealistic than practical.
From the blog cs443 – TayNock's Blog by taynock and used with permission of the author. All other rights reserved by the author.