Click here to Skip to main content
15,900,712 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
glennPattonWork318-Sep-15 1:55
professionalglennPattonWork318-Sep-15 1:55 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
OriginalGriff18-Sep-15 2:07
mveOriginalGriff18-Sep-15 2:07 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
Ravi Bhavnani18-Sep-15 2:26
professionalRavi Bhavnani18-Sep-15 2:26 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
PIEBALDconsult18-Sep-15 19:34
mvePIEBALDconsult18-Sep-15 19:34 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
MikeTheFid21-Sep-15 3:12
MikeTheFid21-Sep-15 3:12 
GeneralRe: Question on variable naming style (i.e. r versus random) Pin
Slacker00721-Sep-15 3:28
professionalSlacker00721-Sep-15 3:28 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
Member 931145521-Sep-15 4:29
Member 931145521-Sep-15 4:29 
AnswerRe: Question on variable naming style (i.e. r versus random) Pin
SeattleC++21-Sep-15 7:06
SeattleC++21-Sep-15 7:06 
Single letter names are ok if the scope of the variable fits in a few lines, so that you can see the definition along with all the uses. Iterators are (usually) an example of this rule. For people who have been programming long enough, i,j, and k naturally name the first, second, and third array dimensions. It's an ancient FORTRAN thing that lives on in the modern world, the way foo, bar, and blah from LISP 1.5 do).

Like all coding rules, this one has to be used with judgement. If using single-letter variable names is the alternative to 150-character long statements, which adds the most complexity.

GeneralIg Nobels Pin
chriselst17-Sep-15 23:13
professionalchriselst17-Sep-15 23:13 
GeneralRe: Ignobels PinPopular
OriginalGriff17-Sep-15 23:21
mveOriginalGriff17-Sep-15 23:21 
GeneralRe: Ig Nobels Pin
User 1013254617-Sep-15 23:38
User 1013254617-Sep-15 23:38 
GeneralRe: Ig Nobels Pin
chriselst17-Sep-15 23:56
professionalchriselst17-Sep-15 23:56 
GeneralRe: Ig Nobels Pin
908236518-Sep-15 2:52
908236518-Sep-15 2:52 
GeneralDon't you hate it when that happens? Pin
OriginalGriff17-Sep-15 22:56
mveOriginalGriff17-Sep-15 22:56 
GeneralRe: Don't you hate it when that happens? Pin
Abhinav S17-Sep-15 22:59
Abhinav S17-Sep-15 22:59 
GeneralRe: Don't you hate it when that happens? PinPopular
User 1013254617-Sep-15 23:03
User 1013254617-Sep-15 23:03 
GeneralRe: Don't you hate it when that happens? Pin
Abhinav S17-Sep-15 23:05
Abhinav S17-Sep-15 23:05 
GeneralRe: Don't you hate it when that happens? Pin
CPallini17-Sep-15 23:09
mveCPallini17-Sep-15 23:09 
GeneralRe: Don't you hate it when that happens? Pin
CPallini17-Sep-15 23:08
mveCPallini17-Sep-15 23:08 
GeneralRe: Don't you hate it when that happens? Pin
OriginalGriff17-Sep-15 23:18
mveOriginalGriff17-Sep-15 23:18 
GeneralRe: Don't you hate it when that happens? Pin
CPallini17-Sep-15 23:25
mveCPallini17-Sep-15 23:25 
GeneralRe: Don't you hate it when that happens? Pin
Nagy Vilmos17-Sep-15 23:08
professionalNagy Vilmos17-Sep-15 23:08 
GeneralRe: Don't you hate it when that happens? Pin
GuyThiebaut17-Sep-15 23:25
professionalGuyThiebaut17-Sep-15 23:25 
GeneralRe: Don't you hate it when that happens? Pin
Sander Rossel18-Sep-15 0:14
professionalSander Rossel18-Sep-15 0:14 
GeneralRe: Don't you hate it when that happens? Pin
OriginalGriff18-Sep-15 0:16
mveOriginalGriff18-Sep-15 0: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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   494 votes