This week we were assigned to read chapters 3 & 4 of The Clean Coder. Chapter 3 was very interesting to me right off the bat; mainly because it was the complete opposite of last weeks chapter “Saying No”. Chapter 3 was called, “Saying Yes”. To sum up the chapter, it basically discussed how to tell if someone means what they are saying, and ways to change what you say to really mean it. I found this chapter very useful because I personally know that I say things I don’t really mean to commit to all of the time. One thing this chapter brings up a few times is when you hear someone say, “I need to lose weight”. That is an extremely common phrase that people say, but it doesn’t necessarily mean they are truly going to commit to losing weight; they might just want to get around to it .. someday. Chapter 3 stresses on the fact that as a professional, you should make it crystal clear when saying yes that you really do mean it and are going to commit to it. Being able to say yes I will get something done as a professional and actually get it done is huge. I have never really put too much thought into everyday conversations of people saying “yes” but not meaning. But now that I think about it, there is so many times where someone says “yes”, but I just know that they don’t mean it so I don’t take it seriously. In the workplace, that is not the professional thing to do and now I am aware of that.
Chapter 4 took a turn and was different then the last 2 chapters. The difference with this chapter was that it was about your personal attitude towards coding, not how you communicate with others. Although it is very important to have good communication skills as a developer; it is also very important to write good code. The author took this chapter to discuss his personal things he has discovered that make his code a lot worse in the past. A few of the tips he gave are:
- Don’t code if you are tired or distracted
- Don’t code at 3 AM
- Don’t code when you’re anxious
- Don’t code when you’re “In the Zone”
- Don’t code when listening to music
I am not going to sit here and list everything he said in the chapter, but I will say I don’t agree with some of his points at all while others I completely agree with. For one, I have coded some of my best work when listening to music. It’s interesting how music can help some people focus, while may distract others. A tip I originally didn’t agree with at all was “Don’t code when you’re ‘In the Zone’”. When I’m in the zone, there is no stopping me. I love being in the zone and feel very productive when I am. However, he did have a point that you may just be working at rapid speeds but not producing that good of work. When you’re in the zone and writing a bunch of code, that is usually the code you will always have to revisit lateron and he’s 100% right about that. It was interesting to me to recognize that being “in the zone” may not always be such a good thing. Finally one tip that stuck out to me that I can personally relate to is finding solutions in the car on the way home. This has happened to me more then once where I left the office with no answer and on the way home, the solution just coming to me. Something about taking your mind off of the problem and focusing on something else can lead to answers. In the chapter, he calls this “disengagement” that may allow your mind to hunt for solutions in a different and more creative way.
From the blog CS@Worcester – Alex's Comp Sci Blog by alexsblog13 and used with permission of the author. All other rights reserved by the author.