The Clean Coder Chapters 5 and 6

 

Chapter 5 in The Clean Coder is about Test Driven Development. There are three laws when it comes to Test Driven Development. They are:

1.) you are not allowed to write any production code until you write a failing test.

2.) you are not allowed to write more of a unit test than is sufficient to fail, and not compiling is failing

3.) and you are not allowed to write more production code that is sufficient to pass the currently failing unit test.

Following these steps makes it so that you have to test the code every step of the way. This can avoid all the errors being thrown at you at once if you don’t test till you are done writing your code.

Chapter 6 is about practicing your coding. It is true that it is your job to keep your skills sharp and not your employers. Therefore practicing should be done on your own time. The example of a surgeon not being paid by a patient to practice before going in to the surgery room was made, and it helps put things into perspective. Keeping your skills sharp, and your resume tuned, should be done on your own time.


Leave a comment