quote:Original post by doctorsixstring
I have to politely disagree with Oluseyi.
While you are, of course, free to, I think you are mixing up notations that convey type and notations that convey use. pObject (or object_ptr, or any other variation) is a usage notation: "this is a pointer." I endorse and encourage such use, since it provides additional information. Same with num_objects. But nNumObjects is redundant since an object count is almost always a form of integer anyway (unless you could have 2.5 objects, but then you''d probably have a different name for it).
Note that pObject doesn''t indicate what type of pointer it is (ie, pointer to what - an "Object"?) More often than not, descriptive variable naming solves such problems.
By the way, Hungarian notation was originally developed for use in assembly language programs where variable names were limited. Having a mnemonic scheme to indicate the "type" of a variable was very useful then, as descriptive variable names were largely impossible.