Click here to Skip to main content
15,888,527 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Consistency... Pin
Greg Utas4-May-20 8:42
professionalGreg Utas4-May-20 8:42 
JokeRe: Consistency... Pin
Nelek4-May-20 8:52
protectorNelek4-May-20 8:52 
GeneralRe: Consistency... Pin
Greg Utas4-May-20 9:02
professionalGreg Utas4-May-20 9:02 
GeneralRe: Consistency... Pin
Gary R. Wheeler4-May-20 11:13
Gary R. Wheeler4-May-20 11:13 
GeneralRe: Consistency... Pin
Greg Utas4-May-20 11:16
professionalGreg Utas4-May-20 11:16 
GeneralRe: Consistency... Pin
k50544-May-20 12:09
mvek50544-May-20 12:09 
GeneralRe: Consistency... Pin
John R. Shaw4-May-20 12:36
John R. Shaw4-May-20 12:36 
GeneralRe: Consistency... Pin
Gary R. Wheeler4-May-20 15:03
Gary R. Wheeler4-May-20 15:03 
Yes, but I relented on that issue in order to achieve a compromise on underscores. I didn't want underscores in the leading position at all, while Mr. Object wanted underscores to be prohibited unless they were in the leading position indicating scope. I use underscores in locals which for me are generally all lower case. I also use underscores in globals when the name includes an acronym: ObjectABC_Factory, for example, where ABC is the acronym.

Back story: My group has a naming convention and coding style document that is 1½ pages, and most of it recommends rather requires or prohibits. In fact, I think there's only one thing in it that is absolutely prohibited, and that's Hungarian notation. When we created this document in 2000, that was still quite a thing when doing Windows programming. The only place we allow it to be used is in argument names for callback functions, and they are recommended to use the same names as in the documentation.

For what it's worth, we've never had a conflict between our use of leading underscores and any compiler in the last 20 years, and that's spread over tens of millions of lines of C, C++, and C# code.
Software Zen: delete this;

GeneralRe: Consistency... Pin
Greg Utas4-May-20 15:15
professionalGreg Utas4-May-20 15:15 
GeneralRe: Consistency... Pin
Jörgen Andersson4-May-20 20:09
professionalJörgen Andersson4-May-20 20:09 
GeneralRe: Consistency... Pin
Greg Utas5-May-20 1:03
professionalGreg Utas5-May-20 1:03 
GeneralRe: Consistency... Pin
StarNamer@work7-May-20 8:00
professionalStarNamer@work7-May-20 8:00 
GeneralRe: Consistency... Pin
kalberts4-May-20 16:06
kalberts4-May-20 16:06 
GeneralRe: Consistency... Pin
Lorenzo Bertolino4-May-20 21:35
professionalLorenzo Bertolino4-May-20 21:35 
GeneralRe: Consistency... Pin
Richard MacCutchan4-May-20 9:11
mveRichard MacCutchan4-May-20 9:11 
JokeRe: Consistency... Pin
kalberts4-May-20 9:43
kalberts4-May-20 9:43 
GeneralRe: Consistency... Pin
Nelek4-May-20 20:47
protectorNelek4-May-20 20:47 
JokeRe: Consistency... Pin
Cp-Coder4-May-20 10:12
Cp-Coder4-May-20 10:12 
GeneralRe: Consistency... Pin
Richard MacCutchan4-May-20 9:10
mveRichard MacCutchan4-May-20 9:10 
GeneralRe: Consistency... Pin
MarkTJohnson4-May-20 10:52
professionalMarkTJohnson4-May-20 10:52 
GeneralRe: Consistency... Pin
ZurdoDev4-May-20 9:20
professionalZurdoDev4-May-20 9:20 
GeneralRe: Consistency... Pin
kalberts4-May-20 10:39
kalberts4-May-20 10:39 
GeneralRe: Consistency... Pin
phil.o4-May-20 10:57
professionalphil.o4-May-20 10:57 
GeneralRe: Consistency... Pin
HellsHarlot4-May-20 20:42
HellsHarlot4-May-20 20:42 
GeneralRe: Consistency... Pin
Sander Rossel4-May-20 22:16
professionalSander Rossel4-May-20 22:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.