Samuel this is what you can use as a standard (at least for yourself):
http://www.cs.msstate.edu/~cs1314/global/guide
It describes how to name variables, functions, scripts etc. In short the
variable names must tell the programmer what it is being used for,
e.g. $countHits = 0; // initialize coun
My two cents,
I think if you are working on a personal product you use what works for
you. If working in a group find out or decide as a group what standards to
use. The hungarian standards are well designed, but I've seen others that
work as well.
When posting data from a from to another s
[snip]
A philosophical question
Are there any standards to naming variables??
I was told that one should include a letter or combination of letters to
describe a variable
i.e.
$sfoo = 'string'; // string
$bfoo = true; // bool
$nfoo = 10; // interger
[/snip]
http://ootips.org/hungarian-nota
3 matches
Mail list logo