Product Description
Even bad code can work. But if it's not cleaned up, it can ruin a development company. Countless hours and valuable resources are lost every year due to poorly written code. But it doesn't have to be that way.
Renowned software expert Robert C. Martin presents a revolutionary paradigm with Clean Code: Practical Skills of Agile Software. Martin teamed up with his colleagues at Mentor Object to distill their best and most agile practices for cleaning code "dynamically" into a book that will gradually instill in you the values of a software professional's skill and make you a better programmer – but only if you practice.
What kind of work will you be doing? You'll be reading code here, lots of code. And you'll have to figure out what's right and wrong in the code. And, most importantly, you'll have to reassess your professional values and your commitment to your craft.
Clean Code is divided into three parts. The first part contains several chapters that describe the principles, patterns, and practices for creating clean code.
The second part consists of several case studies of increasing complexity. Each one is an exercise in cleaning up code – transforming a codebase with some problems into a better and more efficient one. The third part is the payoff: a single chapter with a list of heuristics and "smells" gathered during the creation of the case studies. The result will be a knowledge base that describes how we think when we create, read, and clean up code.
After reading this book, readers will know:
✔ How to distinguish good code from bad code
✔ How to write good code and how to turn 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 fully implement error handling without obscuring the logic
✔ How to apply unit tests and practice test-driven development
This book is essential for any developer, software engineer, project manager, team leader, or systems analyst interested in building better code.