Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 10-17-2004, 11:21 AM   #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
Old 10-17-2004, 11:29 AM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
I'm currently in the process of developing my own naming convention. I am in that position luckily. The reason for that is that I don't like the established naming conventions for C++.

Since I am still thinking, I can not give an answer yet.
However, the names you think of, should make clear what you want. That's a task by itself if no decent preparation is done during design.
__________________
Valmont is offline   Reply With Quote
Old 10-17-2004, 11:32 AM   #3 (permalink)
RobertStout
Registered User
 
RobertStout's Avatar
 
Join Date: Oct 2004
Location: Dank cellar
Posts: 18
RobertStout is on a distinguished road
Enjoy your cappucino, I'll check back later on.
RobertStout is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 06:38 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting