Clean Code is a crucial read for any new software engineers or students studying computer science. The book teaches good coding habits that boil down to keeping your code simple and succinct. My main takeaway was making your functions extremely short, as in max 20 lines per function, because you can often split implementation into different parts. Another tip that I immediately used from the book was not commenting code for the sake of commenting. You don’t need to comment every single line, function, loop, etc. If your code is written clearly enough, the understanding of what gets done by your implementation will be obvious.
About The Book
Even bad code can function. But if code isn’t clean, it can bring a development organization to its knees. Every year, countless hours and significant resources are lost because of poorly written code. But it doesn’t have to be that way.
Noted software expert Robert C. Martin presents a revolutionary paradigm with Clean Code: A Handbook of Agile Software Craftsmanship . Martin has teamed up with his colleagues from Object Mentor to distill their best agile practice of cleaning code “on the fly” into a book that will instill within you the values of a software craftsman and make you a better programmer—but only if you work at it.
Written by Dean Wampler and Robert C. Martin.