Naming variables

Coding style does not impact functionality or performance of the code, but it impacts readability of the code.

For example it is possible to name variables x and y, but it is ambiguous and it will be unclear for another user to understand code without spending significant time understanding what the code does.

A good practice is to name variables by the things they represent. For example number of people, or maximum speed on the road.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator