View Single Post
  #14   Spotlight this post!  
Unread 06-01-2004, 16:17
intx13's Avatar
intx13 intx13 is offline
Programmer
#0293 (Team SPIKE)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Hopewell, NJ
Posts: 8
intx13 can only hope to improve
Re: Coding conventions

It's all about Hungarian notation. Microsoft makes all their new programmers go through courses on Hungarian before they ever touch a compiler. I don't know if it deals with stuff like number of spaces or whatever, but it lays out the naming of variables. For instance:

lets say you have an integer storing average speed. An appropriate name might be nAvSpeed. The "n" prefixes the variable type, and all important parts of the name are capitalized.

chTest: character
sTest: structure (it think)
ptrsTest: pointer to a structure
...