How to write better code? What is called clean code? | SoloLearn: Learn to code for FREE!


How to write better code? What is called clean code?

8/29/2019 10:06:20 AM


3 Answers

New Answer


These articles may be helpful for "How to write good codes" : ► ► Now answering your second question, a clean code is code that is easy to read and to understand (applies to both the original author or somebody else). Well-written programs are easier to debug, easier to maintain, and have fewer errors. This can be achieved if the person making the changes understands the code and the changes introduced in the code are not breaking any existing functionality. If you think on a large scale then you are helping yourself by reducing the cost of maintenance of the project as the early the bugs are found, the less the cost of its maintenance. Cost, here in the sense, means both time and money. This is possible if you write neat and clean codes.


Clean code refers to code that is so efficiently written, that developers will have little problem reading, using and adding to your code. There are a lot of books dedicated to the writing of clear and concise code, so you can read those if you want to know more (I suggest Robert Martins' "Clean Code")


Clean code complies the language's standards and is readable by an average experienced programmer of the language.