There are many different ideas about the specifics of naming conventions, but the general meaning can be summarized as:
Each variable name must be relevant to any data stored in the variable.
Your naming scheme must be consistent .
That way, the major no-no will be single-letter variables (some people use i and j for indexing loops, which is normal because every programmer knows what they are. However, I prefer 'idx' instead of 'i'). There are also names like "method1", it does not mean anything - it should indicate what the variable has.
Another (less common) convention is the "Hungarian" notation, in which the data type is prefixed with a variable name, such as "int i_idx". This is completely useless in modern object-oriented programming languages. Not to mention the flagrant violation of the DRY principle.
The second point, sequence, is just as important. camelCase, UpperCamelCase, whatever - just don't switch between them for no reason.
You will find that naming conventions vary from language to language and often, a company will have its own naming conventions.
Its a good investment to properly name your variables, because when you come to maintain your code much later, and you forget what it all means, it will pay dividends.
source share