If I'm writing a sizeable chunk of javascript (1000s of lines) and it
includes lots of custom functions, global variables, prototypes etc is
there an agreed, customary, conventional, or best practise way to name
them? What I'm worried about is inadvertently having a naming clash
where, say, a function and a global variable end up being named the same.
I have a friend who starts the name of every function with "f" eg.
fMyFunction, and every global variable with "g" eg. gMyVariable. I'm not
sure if this is the "smartest" way to do it.
Should I make a separate index with each name listed with a description
of it's purpose, usage etc?
Andrew Poulos