04 February, 2018
There is a saying that-
There are two things that is really difficult in programming. One is naming a variable and other is cache invalidation.
So, you might think naming is easy, but it's not that easy that you think. And another think is while we are talking about naming, it's not only variable, it goes all the way to a class name, database table, a column name, css class name etc.
First, there are some golden rules, that everybody knows. I am once again remind you that-
_
).There are some other things also. These are not rules, but recommendations. A good programmer should follow these-
_
, it could be -
or it could camel case.There are some personal recommendations from me as well-
$memberList
is more readable than $members
.These came from my idle brain this morning, If you have something to say, please let me know. Peace.