3 ms·
> I haven't seen anyone else using anything like it. Isn't the point of adhering to a style so that others will already be familiar with it? I have seen the k
by meese_ 17y ago
> I haven't seen anyone else using anything like it.
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.
- thaumaturgy 17y ago"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.