Hey, I want to feature you quickly this book (A classic one!).
Clean Code by Robert C.Martin (also known as Uncle Bob). Robert C.Martin is a Software engineer and instructor. He is also known as one of the authors of the famous Agile Manifesto!
I read this book for the first time few month ago. And I'll certainly restart in one year.
Why? Because the examples are timeless and in total abstraction of the language used! It is a great introduction to recognize what is the difference between good code and bad code. Quick example of the principle featured:
- Choose descriptive names for your variables - In one year, you may probably forgotten the meaning of this strange variable named "testTmp" !
- Keep Configurable Data at High Levels - Avoid magic number and simplify the configuration of your variables with default value!
- Avoid dead code (even commented)! - Your source control system is able to remember all the history.
There are many other example and better illustrated than I did above. It also illustrate at the perfection the "Boy Scout Principle".
"Leave your code better than you found it"
“Can you imagine working on a project where the code simply got better as time passed ? Do you believe that any other option is professional? Indeed, isn't continuous improvement an intrinsic part of professionalism?”
- Robert C.Martin - Clean Code
The question of "Why a clean code is important in the industry" and "Is it vital for a business to keep clean code" is a question which deserve several post due to its complexity and multiple opinions.
In all cases, I think it is a great book for every developers which want to improve. So, don't hesitate to acquire this book, it is a must have!