From naming variables and methods, to picking function arguments, to error handling and organizing classes and even comments and formatting, the book is full of suggestions on writing cleaner code. Clean as in easy to write, follow and understand 🙂 The book also has some hands on examples that cover all the discussed topics. I agree that this book is a must-read for any developer.
From the back cover:
Readers will come away from this book understanding
- How to tell the difference between good and bad code
- How to write good code and how to transform bad code into good code
- How to create good names, good functions, good objects, and good classes
- How to format code for maximum readability
- How to implement complete error handling without obscuring code logic
- How to unit test and practice test-driven development
This book is a must for any developer, software engineer, project manager, team lead, or systems analyst with an interest in producing better code.
I’ll surely pay much more attention to the code I write from now on 🙂