View Single Post
Old 10-17-2004, 12:21 PM   #1 (permalink)
RobertStout
Registered User
 
RobertStout's Avatar
 
Join Date: Oct 2004
Location: Dank cellar
Posts: 18
RobertStout is on a distinguished road
Question Naming Conventions and Hungarian Notation

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++

waitForEnter();


// Pascal Casing
// I use this to conform in C#

WaitForEnter();

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;

RobertStout is offline   Reply With Quote