Home > Documentation > Standards Variable NamingVariables are named using Hungarian Notation. In Hungarian
Notation, the first few letters of a variable's name describes it's
type. This notation is useful while debugging because a programmer
does not need to look at a variable's declaration to know the variable's
type. We have tried to make
the prefixes compatible with common Hungarian Notation and as
intuitive as possible. File namesAll file and directory names should be lower case (preferably without underscores). Source files should end in .cpp and header files should end in .h. Directory StructureThe directory structure of the robocup source files is consistent
with the default settings of KDevelop v2.0. Functions Function names should start lowercase and then become
uppercase. Function parameters have a preceding underscore (this
may change in the future). The curly braces are on the line after
the function prototype. ClassesClass names should start uppercase and stay uppercase for every
additional world. Class members follow the Hungarian notation. CommentingTry to keep comments to a minimum by coding as clearly as possible
using descriptivComment using the // style unless you are temporarily commenting
out a block of code during debugging. To indicate code segments
that need modification use: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Have questions? Email David Evans |