[Lemon-commits] [lemon_svn] athos: r784 - hugo/trunk/doc

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:41:28 CET 2006


Author: athos
Date: Tue May 11 11:30:06 2004
New Revision: 784

Modified:
   hugo/trunk/doc/coding_style.dox

Log:
I completed the description of the coding style.

Modified: hugo/trunk/doc/coding_style.dox
==============================================================================
--- hugo/trunk/doc/coding_style.dox	(original)
+++ hugo/trunk/doc/coding_style.dox	Tue May 11 11:30:06 2004
@@ -2,35 +2,37 @@
 
 \page coding_style Hugo Coding Style 
 
-\todo More detailed description, an introductory paragraph, etc.
- 
-\section Naming Convenions
+\section Naming Conventions
 
-\subsection Classes
+In order to make development easier we have made some conventions according to coding style. These include names of types, classes, functions, variables, constants and exceptions. If these conventions are met in one's code then it is easier to read and maintain it. Please comply with these conventions if you want to contribute developing Hugo library. 
+
+\subsection Classes and other types
+
+The name of a class or any type should look like the following:
 
 \code
 AllWordsCapitalizedWithoutUnderscores 
 \endcode
 
-\subsection Methods
+\subsection Methods and other functions
+
+The name of a function should look like the following:
 
 \code
 firstWordLowerCaseRestCapitalizedWithoutUnderscores 
 \endcode
 
-\subsection Constants
+\subsection Constants, Macros
+
+The names of constants and macros should look like the following:
 
 \code
 ALL_UPPER_CASE_WITH_UNDERSCORES 
 \endcode
 
-\subsection %Class and instance member variables
+\subsection Class and instance member variables, auto variables 
 
-\code
-all_lower_case_with_underscores 
-\endcode
-
-\subsection Auto variables (=variables used locally in methods)
+The names of class and instance member variables and auto variables (=variables used locally in methods) should look like the following:
 
 \code
 all_lower_case_with_underscores 
@@ -38,6 +40,8 @@
 
 \subsection Exceptions
 
+When writing exceptions please comply the following naming conventions:
+
 \code
 ClassNameEndsWithException
 \endcode



More information about the Lemon-commits mailing list