Clean Code Review— A must-read Coding Book for Programmers | by javinpaul | Javarevisited | Medium

Clean Code Review— A must-read Coding Book for Programmers

Want to learn the art of converting bad code to good code? This book can help, worth reading for Java programmers.

Clean Code Review- A must-read Coding Book for Programmersimage_credit — Clean Code book

Well, you won’t appreciate good until you have seen bad code and that’s what this book does.

It first presents a code, which is ugly, hard to read, hard to understand, hard to maintain, and then Uncle Bob goes step by step to refactor that code and converting them into the masterpiece you would be proud of writing.

You will get a taste of how to convert a bad code to good code when you first read his example of an algorithm to generate the first 100 prime numbers. He has explained how to write clean code by with the Sieve of Eratosthenes is a very nice way.

is Clean Code book worth reading image_credit — Pushkar

If a code isn’t clean, it can bring the company to its knees and reduce its ability to remain competitive by providing cutting-edge solutions. Since a Code needs to be maintained in most of his life-span, it must allow you to maintain and extend, and that’s what clean code does.

Is Clean Code Worth Reading? Review of Clean Code Book

The Clean Code book is well structured and divided into three main parts. The first part talks about principles, patterns, and practices of writing clean code. This is where I first learned about SOLID design principles, and it changed the way I write code.

For example, if I didn’t know about the “Open Closed design principle,” I wouldn’t have understood the full power of Polymorphism and Abstraction ever.

These little principles not only help you to understand fundamentals better but also help you to write better code, which is easier to understand and maintain.

By the way, clean code is not just about architecture but also about debugging and performance, a code that is easier to read is also easier to debug and optimize.

The title “Clean Code: A Handbook of Agile Software Craftsmanship” fully justify the content inside the book because coding is no lesser than Craftmanship and his argument that “Even bad code can function. But if the code isn’t clean, it can bring a development organization to its knees” is perfectly valid.

The book is full of programming best practices, I mean correctly naming variables, classes, and methods, some of you can find it here as well.

In short, must-read books for the programmer, and after reading this book, you should be able to

  • write good code and how to transform bad code into good code
  • Create good names, good functions, good objects, and good classes
  • Format code for maximum readability
  • Implement complete error handling without obscuring code logic
  • Unit test and practice test-driven development

Other Programming resources and Books you may like

P. S. — If you are looking for online courses to learn Design patterns for writing clean code then I also suggest you take a look at the Design Pattern in Java course by Dmitri Nestruk on Udemy. It will greatly improve your understanding of writing robust and easy to maintain object-oriented code in Java.