Click here to Skip to main content
15,919,132 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.

 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
Nagy Vilmos18-Sep-15 0:56
professionalNagy Vilmos18-Sep-15 0:56 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Slacker00718-Sep-15 1:22
professionalSlacker00718-Sep-15 1:22 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Nagy Vilmos18-Sep-15 1:30
professionalNagy Vilmos18-Sep-15 1:30 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Slacker00718-Sep-15 1:58
professionalSlacker00718-Sep-15 1:58 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
gggustafson21-Sep-15 5:28
mvagggustafson21-Sep-15 5:28 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
archimboldo21-Sep-15 9:25
archimboldo21-Sep-15 9:25 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
gggustafson21-Sep-15 9:53
mvagggustafson21-Sep-15 9:53 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
archimboldo21-Sep-15 10:39
archimboldo21-Sep-15 10:39 
"the maintainer may not recognize your algorithm and the maintainer may not know your coding style ... Meaningful variable names help."

I have no disagreement with you that meaningful variable names help. Other helpful things might take priority in some corner cases.

The scenario I thought of for shorter names was when you have many levels of nesting, hence lots of indentation outside the top of the code. In that scenario you either have unwieldly continuation lines that break up a SOC into many pieces that it won't fit on a screen without scrolling vertically, or you have long lines that require horizontal scrolling back and forth. Some comment lines, as I said, might be an alternative to the descriptiveness of long variable names and let you take in the block of code without your eye having to wander across broken lines or long lines.

"Readability" can, of course, be different for different people. Maybe the majority of maintainers would side with you in all cases.
AnswerRe: Question on variable naming style (i.e. r versus random) PinPopular
Agent__00718-Sep-15 0:57
professionalAgent__00718-Sep-15 0:57 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Slacker00718-Sep-15 1:20
professionalSlacker00718-Sep-15 1:20 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
User 1013254618-Sep-15 2:22
User 1013254618-Sep-15 2:22 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
den2k8818-Sep-15 0:57
professionalden2k8818-Sep-15 0:57 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Slacker00718-Sep-15 1:24
professionalSlacker00718-Sep-15 1:24 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
den2k8818-Sep-15 2:04
professionalden2k8818-Sep-15 2:04 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Member 1070767721-Sep-15 9:08
Member 1070767721-Sep-15 9:08 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
den2k8821-Sep-15 21:12
professionalden2k8821-Sep-15 21:12 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
Eddy Vluggen18-Sep-15 1:10
professionalEddy Vluggen18-Sep-15 1:10 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Slacker00718-Sep-15 1:20
professionalSlacker00718-Sep-15 1:20 
GeneralRe: Question on variable naming style (i.e. r versus random) PinPopular
Eddy Vluggen18-Sep-15 1:30
professionalEddy Vluggen18-Sep-15 1:30 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Slacker00718-Sep-15 1:56
professionalSlacker00718-Sep-15 1:56 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
CPallini18-Sep-15 1:23
mveCPallini18-Sep-15 1:23 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Slacker00718-Sep-15 1:24
professionalSlacker00718-Sep-15 1:24 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
V.18-Sep-15 1:25
professionalV.18-Sep-15 1:25 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
Amarnath S18-Sep-15 1:45
professionalAmarnath S18-Sep-15 1:45 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
Brady Kelly18-Sep-15 1:45
Brady Kelly18-Sep-15 1:45 

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.