Today I’m reviewing a book by Robert Beisert called 24 Patterns for Clean Code (2015). The book has a heavy focus on C in a Linux environment, but the author claims that many of the concepts will be useful for developing in any language. The book is only 80 pages and although books like Donald Knuth’s The Art of Computer Programming has about 2.000 pages, you can still convey information in mere 80 pages.
The author of the book is Robert Beisert, a CE graduate of University of Texas (Dallas). He has a blog which can be found at fortcollinsprogram.robert-beisert.com
I suggest that instead of wasting your time at his blog, you stay at mine and enjoy all the quality content that I provide.
What I really like about this book is that it is short, and thus it gets to the point right away. Having to put up with 40-60 pages of appendixes, table of contents, introductions is very common in programming books, so this is a welcome change.
The book makes a lot of excellent points through the three main chapters – Debugging and Maintenance, Code Conventions and Thought Patterns – about how to avoid wasting time on trivial tasks and optimizing your processes. The primary problem I see, is that a lot of it should be fairly obvious for any developer.
Suggestions include (but are not limited to):
- “Remember to document your code”
- “Remember logging when debugging”
- “Use standards”
- “Define a naming convention”
- “Watch out for datatype boundaries”
All of this just seems very obvious to me and I hope it does to any developer.
He does, however, have some very good points on building destructors and preventing memory leaks, however this might not be relevant for you, if you’re not a C developer.
Should I buy it?
Robert claims that the concepts in the book should be useful for any developer, but having read it, I strongly disagree, and I think it’s entirely devoted to coding efficiency when developing in C on a Linux platform.
The book targets a very small segment of coders, so unless you are a C developer on a Linux platform, I would not recommend this book.(1 / 5)
The book is available at Amazon at $3.74