Naming Conventions and Hungarian Notation in C++
This post is specifically addressed to Valmont, as it concerns his code
here. But I'd also like to hear from anyone who has an opinion.
-------------------
I noted your use of the method naming convention:
wait_for_enter();.
I am curious for your thoughts on naming conventions in C++ (I have encountered conflicting views).
// Style name?
// I encounter this ocasionally in C++ but use it in only in C.
wait
_for
_enter();
// Camel Casing
// I use this in C++
wait
For
Enter();
// Pascal Casing
// I use this to conform in C#
Wait
For
Enter();
I hear that so long as you are consistant and don't deviate from accepted practices then it is largely a matter of personal style.
I would like to base a personal style on an acceptable practice before I get to comfortable with it.
-------------------
Lastly, if I may pick your brain further I'd like your thoughts on "Hungarian Notation" in C++. Use it or lose it.
Some programmers take it to far.. rgszxyzpdqOrderNo
Charles Simonyi Style 1
e.g. string
sName;
(VB Style) Style 2
e.g. string
strName;
