Click here to Skip to main content
15,881,882 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: I'll see your curly braces & raise you a variable naming convention Pin
honey the codewitch12-Dec-22 5:38
mvahoney the codewitch12-Dec-22 5:38 
GeneralRe: I'll see your curly braces & raise you a variable naming convention Pin
raddevus12-Dec-22 7:18
mvaraddevus12-Dec-22 7:18 
GeneralRe: I'll see your curly braces & raise you a variable naming convention Pin
honey the codewitch12-Dec-22 7:19
mvahoney the codewitch12-Dec-22 7:19 
GeneralRe: I'll see your curly braces & raise you a variable naming convention Pin
raddevus12-Dec-22 7:30
mvaraddevus12-Dec-22 7:30 
GeneralRe: I'll see your curly braces & raise you a variable naming convention Pin
honey the codewitch12-Dec-22 7:53
mvahoney the codewitch12-Dec-22 7:53 
GeneralRe: I'll see your curly braces & raise you a variable naming convention Pin
Slacker00712-Dec-22 5:58
professionalSlacker00712-Dec-22 5:58 
GeneralRe: I'll see your curly braces & raise you a variable naming convention Pin
raddevus12-Dec-22 7:31
mvaraddevus12-Dec-22 7:31 
GeneralRe: I'll see your curly braces & raise you a variable naming convention Pin
kmoorevs12-Dec-22 7:33
kmoorevs12-Dec-22 7:33 
I'm a solo dev and as such have complete autonomy to do as I please. It's funny that it has changed through the years as IDEs/autocomplete have gotten better, and my eyesight has gotten worse! Laugh | :laugh:

In the beginning, I followed the way I was taught at uni, which was either scopeTypeName for public/global or typeName for locals. Back then before IDEs got smarter, I also used very short variable names.

As time wore on and my eyesight got worse, I started to favor snake_case_descriptive_names so that it was easier for me to read and understand. Additionally, IDEs had improved such that long names weren't an issue as far as typing and type recognition while reading/debugging.

As for generic objects like iterators, indexes, database objects (connections, datatables, readers, etc.) I have a stock set that I have used for 20+ years. IMHO, these are distinctive enough as to basically serve as a digital fingerprint.

Currently, I'm the only on working on my code, but I realize that may not always be the case. I'd like to think that between descriptive variable name, my shorthand, and sparse commenting, that the next poor chap who sees it can understand what this mess actually does! Laugh | :laugh:

Regarding curly braces, when I have to use them, I like the opening brace on a new line with everything indented between.
"Go forth into the source" - Neal Morse
"Hope is contagious"

GeneralRe: I'll see your curly braces & raise you a variable naming convention Pin
Gary R. Wheeler12-Dec-22 12:46
Gary R. Wheeler12-Dec-22 12:46 
GeneralRe: I'll see your curly braces & raise you a variable naming convention Pin
Jeremy Falcon14-Dec-22 12:08
professionalJeremy Falcon14-Dec-22 12:08 
GeneralHello world again PinPopular
pompey-boy12-Dec-22 2:22
pompey-boy12-Dec-22 2:22 
GeneralRe: Hello world again Pin
OriginalGriff12-Dec-22 2:23
mveOriginalGriff12-Dec-22 2:23 
GeneralRe: Hello world again Pin
pompey-boy27-Feb-23 14:24
pompey-boy27-Feb-23 14:24 
GeneralRe: Hello world again Pin
Slacker00712-Dec-22 2:33
professionalSlacker00712-Dec-22 2:33 
GeneralRe: Hello world again Pin
pompey-boy27-Feb-23 14:43
pompey-boy27-Feb-23 14:43 
GeneralRe: Hello world again Pin
den2k8812-Dec-22 2:39
professionalden2k8812-Dec-22 2:39 
GeneralRe: Hello world again Pin
pompey-boy27-Feb-23 18:49
pompey-boy27-Feb-23 18:49 
GeneralRe: Hello world again Pin
Nelek12-Dec-22 3:59
protectorNelek12-Dec-22 3:59 
GeneralRe: Hello world again Pin
Single Step Debugger12-Dec-22 3:59
Single Step Debugger12-Dec-22 3:59 
GeneralRe: Hello world again Pin
pompey-boy27-Feb-23 14:43
pompey-boy27-Feb-23 14:43 
GeneralRe: Hello world again Pin
Single Step Debugger1-Mar-23 3:51
Single Step Debugger1-Mar-23 3:51 
GeneralRe: Hello world again Pin
Mike Hankey12-Dec-22 4:22
mveMike Hankey12-Dec-22 4:22 
GeneralRe: Hello world again Pin
Roger Wright12-Dec-22 9:32
professionalRoger Wright12-Dec-22 9:32 
GeneralRe: Hello world again Pin
Mike Hankey12-Dec-22 10:29
mveMike Hankey12-Dec-22 10:29 
GeneralRe: Hello world again Pin
pompey-boy27-Feb-23 14:22
pompey-boy27-Feb-23 14:22 

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.