In chapter three of the The Clean Coder, authored by Robert Martin, the focus was on saying yes and meaning it. This chapter is some what of a continuation of the last. It is very easy, when asked to preform a task, to almost reactively say yes. The author stress the fact to consider what is being asked and to only say yes if you will accomplish the task by the deadline. This is important as meeting keeping to you promises will mean others can trust and depend on you. If a person is always saying yes without delivering one will not be able take them at there word. This is where the author start using the phrase “the language of commitment”. With this he means use strong words that will convey your true intention. Use words like will or by in place of words like try, hope, or plan to. By using strong words you will minimize the worry in others, But again, this is only true if you keep to your promises. This chapter continues on the thought in chapter two in the idea that it is okay to say no or something is not possible. It is far better to say no than to say yes only to not complete the task at hand.
Referring to the same situation in my blog last week, I was working at a cabinet making company where one of the employees would always say yes. This habit of saying yes to all the tasks and deadlines meant nobody know what to expect to actually be accomplished. The word yes meant nothing. I also recall many times I was given a task and my response was “I will try to complete it” most of the time I had every intention on completing it but the words I used didn’t show it.
The fourth chapter is where the books starts to focus on coding. The author goes into some areas that are good programing techniques, like per programing, but also covers bad practices such as rushing, programing when tired or warn out, calling code done before it is actually ready to ship. He also talks about “the zone”, this is a state of being highly focused, a type of tunnel vision. In his opinion he thinks this is bad place to be and suggest taking a break or finding a partner to program with if you find your self slip in to the zone. People are different though, some like listening to music or having the television on in the background, personally I like to work without the outside noise. One of the last items covered in the chapter was knowing when to take a break. Sometimes it is good to walk away from the computer and in many cases you will think of a solution while preforming some mundane task.
From the blog CS@WSU – :(){ :|: & };: by rmurphy12blog and used with permission of the author. All other rights reserved by the author.
