Clean Code

The benefits of writing clean code:

Clean code helps minimize the time needed to spend reading and trying to understand the code. Messy code has the uncanny ability to slow down any developer
and make his work much harder. The messier the code is, the more time needed to understand it enough to work with.

Tips on writing clean code:

Make code readable for people

Use meaningful names for variables, functions and methods

Let every function or method perform only one task

Use comments for clarification

Be consistent

Review your code regularly

 See original article here