Clean Code by Robert C Martin et al

Clean Code: A Handbook of Agile Software Craftsmanship, by “uncle” Bob Martin & his associates, is a great book, and one which any developer will learn a great deal from. In most respects, it is a five-star book, but… the title is misleading. By rights it should be called “Clean Java Code”.

Let me explain: I am an ActionScript developer, and bought this book to improve my code style and structure. For the most part, it has done that: the chapters on naming, comments, functions and classes are absolutely superb. But then, huge swathes of the book are devoted exclusively to Java, and use some fairly complex (and, in my opinion, not very well formatted) code to convey their intention.

I don’t generally have a problem with using Java-oriented books to learn more general programming concepts (Martin Fowler’s “Refactoring” and O’Reilly’s Head-First Design Patterns are both books I would recommend to anyone, regardless of their language-of-choice), but around 1/3rd of Bob Martin’s book is virtually impenetrable to anyone who does not already have significant Java experience.

That said, I should re-iterate that this book will be hugely valuable to any programmer. I just wish that they had tried to use a little more pseudo-code and a little less real-world examples, with all of the complexities entailed, and I think a lot could have been done to make the Java code more readable for users of other languages.

Click here to buy the book at Amazon UK.

Leave a Reply

Your email address will not be published. Required fields are marked *