Click here to Skip to main content
15,888,984 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: have anyone used this device? Pin
rnbergren3-Mar-22 3:06
rnbergren3-Mar-22 3:06 
Generalmini poll Pin
Super Lloyd1-Mar-22 14:03
Super Lloyd1-Mar-22 14:03 
GeneralRe: mini poll Pin
Greg Utas1-Mar-22 14:29
professionalGreg Utas1-Mar-22 14:29 
GeneralRe: mini poll Pin
Rick York1-Mar-22 14:51
mveRick York1-Mar-22 14:51 
GeneralRe: mini poll Pin
David Crow1-Mar-22 14:53
David Crow1-Mar-22 14:53 
GeneralRe: mini poll Pin
Mircea Neacsu1-Mar-22 15:06
Mircea Neacsu1-Mar-22 15:06 
GeneralRe: mini poll Pin
Super Lloyd1-Mar-22 15:55
Super Lloyd1-Mar-22 15:55 
GeneralRe: mini poll Pin
Luc Pattyn1-Mar-22 15:18
sitebuilderLuc Pattyn1-Mar-22 15:18 
good name length depends on scope size.
it doesn't make any sense to have a 10-char name for a variable that lives for three lines only.

always use a descriptive name that holds the most relevant information, preferably a noun (or adjective)
exceptions: single letter is OK for small loop index, or coordinates (x,y) or EventArgs or when implementing some mathematical/physical formula with strict naming conventions

avoid names that can't be pronounced
avoid names that sound alike
avoid names that are the same except for their casing (exception: property and its backing variable)
avoid confusion, don't have two names that differ only in one char when that would be i/l/1 or o/0

use camelCase for compound names, avoid underscores.

conclusion: abcd is not OK, and abcdefGhijkLmno is worse; and mySingleVariable is not OK.
Luc Pattyn [My Articles]
The Windows 11 "taskbar" is disgusting. It should be at the left of the screen, with real icons, with text, progress, etc. They downgraded my developer PC to a bloody iPhone.

GeneralRe: mini poll Pin
Super Lloyd1-Mar-22 15:54
Super Lloyd1-Mar-22 15:54 
GeneralRe: mini poll Pin
Luc Pattyn1-Mar-22 16:18
sitebuilderLuc Pattyn1-Mar-22 16:18 
GeneralRe: mini poll Pin
CodeWraith1-Mar-22 16:01
CodeWraith1-Mar-22 16:01 
GeneralRe: mini poll Pin
Luc Pattyn1-Mar-22 16:22
sitebuilderLuc Pattyn1-Mar-22 16:22 
GeneralRe: mini poll Pin
Ron Anders1-Mar-22 15:37
Ron Anders1-Mar-22 15:37 
GeneralRe: mini poll Pin
honey the codewitch1-Mar-22 15:38
mvahoney the codewitch1-Mar-22 15:38 
GeneralRe: mini poll Pin
Super Lloyd1-Mar-22 15:55
Super Lloyd1-Mar-22 15:55 
GeneralRe: mini poll Pin
honey the codewitch1-Mar-22 17:22
mvahoney the codewitch1-Mar-22 17:22 
GeneralRe: mini poll Pin
CodeWraith1-Mar-22 15:52
CodeWraith1-Mar-22 15:52 
GeneralRe: mini poll Pin
V.1-Mar-22 19:18
professionalV.1-Mar-22 19:18 
GeneralRe: mini poll Pin
lmoelleb1-Mar-22 20:44
lmoelleb1-Mar-22 20:44 
GeneralRe: mini poll Pin
kmoorevs2-Mar-22 10:20
kmoorevs2-Mar-22 10:20 
GeneralRe: mini poll Pin
Super Lloyd2-Mar-22 18:22
Super Lloyd2-Mar-22 18:22 
NewsSorry about your new car Pin
Kent Sharkey1-Mar-22 13:52
staffKent Sharkey1-Mar-22 13:52 
GeneralWell I guess that put the fire out Pin
Peter_in_27801-Mar-22 15:21
professionalPeter_in_27801-Mar-22 15:21 
GeneralRe: Sorry about your new car Pin
CodeWraith1-Mar-22 15:54
CodeWraith1-Mar-22 15:54 
GeneralRe: Sorry about your new car Pin
dandy722-Mar-22 3:54
dandy722-Mar-22 3:54 

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.