Click here to Skip to main content
15,896,606 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: Unions in C# Pin
Mike Hankey10-Sep-18 3:15
mveMike Hankey10-Sep-18 3:15 
GeneralRe: Unions in C# Pin
Eytukan10-Sep-18 3:50
Eytukan10-Sep-18 3:50 
GeneralRe: Unions in C# Pin
kalberts10-Sep-18 3:19
kalberts10-Sep-18 3:19 
GeneralRe: Unions in C# Pin
Eytukan10-Sep-18 3:53
Eytukan10-Sep-18 3:53 
GeneralRe: Unions in C# Pin
Chris Maunder10-Sep-18 19:59
cofounderChris Maunder10-Sep-18 19:59 
GeneralRe: Unions in C# Pin
Michael Martin10-Sep-18 21:20
professionalMichael Martin10-Sep-18 21:20 
GeneralRe: Unions in C# Pin
Chris Maunder10-Sep-18 21:44
cofounderChris Maunder10-Sep-18 21:44 
GeneralRe: Unions in C# Pin
kalberts10-Sep-18 21:42
kalberts10-Sep-18 21:42 
My very first programming was in BASIC in those days when it was really BASIC: You had a maximum of 286 numeric variables named A to Z or A0 - A9 to Z0 - Z9, plus 26 string variables A$ to Z$. And then you could have 26 arrays, I believe they were named A# to Z#. I really should dig up that old "Real Time Basic for the Univac 1100 series" manual from my basement, for a nostalgia trip Smile | :)

That was in my high school days. At the Univerisity we learned Fortran and then Simula and Pascal, and the professor went to extremes in demanding long, descriptive variable names: When adding two numbers, fitting the names of the sum and the two addends on a single line could be a problem within the 80 char screen width. But the professor insisted.

Then, I looked over the shoulder of the brightest guys in the class while he was typing in some Pascal code, and I gasped: You can't hand in that! ... Variables were named I01, I02... F01, F02 (F for Float) and so on. "Of course I won't!" he replied, "Before I hand it in, I have the editor automatically replace I01 with NumberOfApplesPerBasket, F02 with AverageWeightPerAppleInGrams and I02 with NumberOfBasketsPerLoad - I can't waste my time typing those terribly long names every time I use that variable!" -- Sure he was the brightest guy. To him, the mental effort of knowing the meaning of I01 was no greater than knowingt the meaning of NumberOfApplesPerBasket. So why not save a little typing?

For my own part, I am happy with descriptive names (within limits), even if it takes a little more typing.
GeneralRe: Unions in C# Pin
Chris Maunder10-Sep-18 21:46
cofounderChris Maunder10-Sep-18 21:46 
GeneralRe: Unions in C# Pin
Maximilien10-Sep-18 4:44
Maximilien10-Sep-18 4:44 
GeneralRe: Unions in C# PinPopular
kalberts10-Sep-18 5:46
kalberts10-Sep-18 5:46 
GeneralRe: Unions in C# Pin
Eytukan10-Sep-18 6:59
Eytukan10-Sep-18 6:59 
GeneralRe: Unions in C# Pin
jeron110-Sep-18 7:14
jeron110-Sep-18 7:14 
GeneralRe: Unions in C# Pin
Eytukan10-Sep-18 7:46
Eytukan10-Sep-18 7:46 
GeneralRe: Unions in C# Pin
Sander Rossel10-Sep-18 9:26
professionalSander Rossel10-Sep-18 9:26 
GeneralRe: Unions in C# Pin
Eytukan12-Sep-18 19:28
Eytukan12-Sep-18 19:28 
GeneralRe: Unions in C# Pin
CPallini10-Sep-18 11:04
mveCPallini10-Sep-18 11:04 
GeneralRe: Unions in C# Pin
Eytukan12-Sep-18 19:26
Eytukan12-Sep-18 19:26 
GeneralRe: Unions in C# Pin
CPallini12-Sep-18 23:54
mveCPallini12-Sep-18 23:54 
GeneralRe: Unions in C# Pin
englebart11-Sep-18 2:07
professionalenglebart11-Sep-18 2:07 
GeneralRe: Unions in C# Pin
DSewhuk11-Sep-18 8:21
DSewhuk11-Sep-18 8:21 
GeneralRe: Unions in C# Pin
Jerry W. Manweiler, Ph.D.11-Sep-18 11:31
Jerry W. Manweiler, Ph.D.11-Sep-18 11:31 
GeneralRe: Unions in C# Pin
Eytukan12-Sep-18 19:26
Eytukan12-Sep-18 19:26 
GeneralData Dictionaries Pin
NeverJustHere9-Sep-18 23:42
NeverJustHere9-Sep-18 23:42 
GeneralRe: Data Dictionaries Pin
dan!sh 10-Sep-18 0:19
professional dan!sh 10-Sep-18 0:19 

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.