1 \documentclass{article
}
4 \newcommand{\bold}[1]{{\raggedleft\bfseries\upshape #1}}
10 \subsection{Class names
}
12 Class names should be UpperCase.
14 \bold{Reason:
} Code uniformity.
16 \subsubsection{Examples
}
30 \subsection{Function Names
}
32 Class function names should be UpperCase, except
33 when using any of the following prefixes, in which
34 case they whould be in cammelCase:
43 \bold{Reason:
} Code readability.
45 \subsubsection{Examples
}
64 \subsection{Identation
}
66 Code should be idented with tabs.
68 \bold{Reason:
} Code readability.
70 \subsubsection{Examples
}
78 for (i =
0; i <
100; i++)
{
89 for (i =
0; i <
100; i++)
{
95 \subsection{For Loops
}
97 For construct should have an space after "for", there should not
98 be spaces between the parenthesis.
100 \bold{Reason:
} Code readability and uniformity.
102 \subsubsection{Examples
}
107 for (i =
0; i <
100; i++)
{
114 for( i =
0 ; i <
100 ; i++ )
{
122 \subsection{Loop Brackets
}
124 They should be on the same line of the loop construct.
126 \bold{Reason:
} Wastes a line.
128 \subsubsection{Examples
}
133 for (i =
0; i <
100; i++)
{
139 for (i =
0; i <
100; i++)
144 \subsection{Function Brackets
}
146 They should be in the same line of the function.
148 \bold{Reason:
} Having the brancket in the next line wastes it,
149 probably doesn't add much to readability.
151 \subsubsection{Examples
}
156 int main(int argc, char **argv)
{
162 int main(int argc, char **argv)