Hello!
I'm trying to write my code as maintainable and easy to understand as possible, and I thought of including the type of data a variable holds in its name.
e.g:
$intCurrentLine = 1; instead of $currentLine = 1;
$strUser = 'blah'; instead of $user = 'blah';
I don't think it is really necessary in the above example, but may it be helpful in some cases?
- Could this make my code more understandable?
- Should I actually use this or stick with "normal" variable names?
- Do you know scripts where this is used?
best regards, lamas