Re: A86: random numbers (now [OT])


[Prev][Next][Index][Thread]

Re: A86: random numbers (now [OT])




> Personally, I find the underscores too much of a pain to type all the
> time. I usually use one or two letter names for variables; it's easier
> to type. The only problem is that no one else can understand my code.

I take it you've never coded a program longer than a few thousand lines.  I
even confuse myself when I do that :)  I only use one letter names for loop
counters and such (where variables only have scope in the current block).

> One thing that is useful, though, is prefixing member variables with
> "m_" (in C++) and globals with "g_". When you're reading someone else's
> code, it's helpful to know the scope of variables.

Hmm, that's interesting, I've never seen that before.  One of the things I
actually like about C++ is that you can throw everything into a class and
not have to use too many global variables (assuming you avoid writing C code
where each function takes 10 parameters).

> BTW, Who came up with the name camel? I've never heard it before.

No idea, but I've seen it several places.




References: