Hungarian Notation, invented by Charles Simonyi. Originally used for C/C++, adopted for use in Java:<div><br></div><div><a href="http://c2.com/cgi/wiki?HungarianNotation">http://c2.com/cgi/wiki?HungarianNotation</a></div><div>
<br></div><div><br><br><div class="gmail_quote">On Sun, Sep 6, 2009 at 9:04 AM, Manfred Schenk <span dir="ltr"><<a href="mailto:manfred.schenk@zerobyte.de">manfred.schenk@zerobyte.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Paul-Inge Flakstad schrieb:<br>
<div class="im">> Hi<br>
><br>
> Just a silly question really: I've never seen the naming convention used in OpenCms, with the "m_" prefix on member variables, used in Java before. Is this a commonly used naming convention in Java? Should I follow it when writing code which may be contributed to OpenCms? If so, is this the convention below the correct one?<br>
><br>
> 1. member variables are prefixed with m_<br>
> 2. static variables are prefixed with s_<br>
> 3. global variables are prefixed with g_<br>
<br>
</div>It is not commonly used in Java I think - but I've seen it in several<br>
cases where teams had switched from another language to java and had<br>
kept their naming guidelines.<br>
<br>
>From my point of view such a type indication inside a name is not needed<br>
anymore since there are powerful IDEs nowadays.<br>
<br>
But if one special convention is used then it should be used<br>
consistently for the whole project.<br>
<br>
Regards,<br>
Manfred<br>
<font color="#888888"><br>
--<br>
| Manfred Schenk | born between RFC638 and RFC640<br>
| PGP-Keys unter |<br>
| <a href="http://www.ZEROByte.de/pgp/" target="_blank">http://www.ZEROByte.de/pgp/</a> | WWW: <a href="http://www.ZEROByte.de/" target="_blank">http://www.ZEROByte.de/</a><br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
</div></div></blockquote></div><br></div>