[opencms-dev] Naming conventions

a.westermann at alkacon.com a.westermann at alkacon.com
Mon Sep 7 14:22:20 CEST 2009


Hi Manfred,

>>    1. member variables are prefixed with m_
>>    2. static variables are prefixed with s_
>>    3. global variables are prefixed with g_
> 
> It is not commonly used in Java I think - but I've seen it in several
> cases where teams had switched from another language to java and had
> kept their naming guidelines.
> 
> From my point of view such a type indication inside a name is not needed
> anymore since there are powerful IDEs nowadays.

Personally as a developer I e.g. like the side-effect of the m_ - 
convention that (in long inheritance - chains) the members of my project 
   are sorted and clearly identifiable.

Kind Regards,
Achim.

-------------------
Achim Westermann

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org






More information about the opencms-dev mailing list