How to make readable code

readable-codeThere are a lot of ways to make readable code. Here are the most common:

Meaningful names for variables, function name and class.
This is by far the most common and important first step to readable code.
It also marks the difference between newbie and experienced developer.
An experienced developer  have a better understanding of the programming language. Therefore less concerned about syntax.
A good example is a variable named $workingDays compared to simply $x. While they both can be used without flaw. $workingDays brings context to the code.
Remember to make sure the purpose is clearly reflected in the names.

Break down long code into shorter version
This one is a more difgicult. The basic idea behind this is to group codes into functions. Also make sure the function perform only one specific function.

Do you have tips for creating readable code ?

References: