Re:Every programmer has a variable naming philosophy
by thaumaturgy on Thursday February 04, 2010 @03:55PM
(#1101582)
"gVariable" was common back in things like "Tricks of the Mac Game Programming Gurus" and the like, years ago. I think it's an old Pascal convention, but I'm probably wrong.
When working on others' code, I do adopt their style, including their braces and so forth.
But for my own stuff, my style is more comfortable, and I think that when other people see it, it's pretty clear what's going on.
Isn't the point of adhering to a style so that others will already be familiar with it?
I have seen the kVariable style, and of course the iterator convention. I have never seen the other two, however; usually globals are denoted with all-caps and locals are just assumed (xVariable seems annoyingly superfluous). That's just my opinion, though — if I were coding in a language where your style was the most common, I would use that instead.