Click here to Skip to main content
15,893,588 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
F-ES Sitecore18-Sep-15 0:54
professionalF-ES Sitecore18-Sep-15 0:54 
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 
"For better readability" is the key to your statement. Better readability is a prerequisite to better understanding. And better understanding is directly related to maintainability.

Now consider for a moment that a maintainer is visiting your code for the first time. A couple of things: the maintainer may not recognize your algorithm and the maintainer may not know your coding style. So the easier it is for the maintainer to understand your code, the faster the error (why else a maintainer?) will be corrected. Meaningful variable names help. In short loops, I have no problem with small variable names, but only for integer indices, not for statements like foreach ( Address address in addresses ).... Once the form foreach ( Address a in addresses )... is allowed, bad things happen to understanding.
Gus Gustafson

GeneralRe: Question on variable naming style (i.e. r versus random) Pin
archimboldo21-Sep-15 10:39
archimboldo21-Sep-15 10:39 
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 

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.