Click here to Skip to main content
14,448,728 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 4:15
professionalMike Hankey10-Sep-18 4:15 
GeneralRe: Unions in C# Pin
Eytukan10-Sep-18 4:50
MemberEytukan10-Sep-18 4:50 
GeneralRe: Unions in C# Pin
Member 798912210-Sep-18 4:19
MemberMember 798912210-Sep-18 4:19 
GeneralRe: Unions in C# Pin
Eytukan10-Sep-18 4:53
MemberEytukan10-Sep-18 4:53 
GeneralRe: Unions in C# Pin
Chris Maunder10-Sep-18 20:59
cofounderChris Maunder10-Sep-18 20:59 
GeneralRe: Unions in C# Pin
Michael Martin10-Sep-18 22:20
professionalMichael Martin10-Sep-18 22:20 
GeneralRe: Unions in C# Pin
Chris Maunder10-Sep-18 22:44
cofounderChris Maunder10-Sep-18 22:44 
GeneralRe: Unions in C# Pin
Member 798912210-Sep-18 22:42
MemberMember 798912210-Sep-18 22: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 22:46
cofounderChris Maunder10-Sep-18 22:46 
GeneralRe: Unions in C# Pin
Maximilien10-Sep-18 5:44
MemberMaximilien10-Sep-18 5:44 
GeneralRe: Unions in C# Pin
Member 798912210-Sep-18 6:46
MemberMember 798912210-Sep-18 6:46 
GeneralRe: Unions in C# Pin
Eytukan10-Sep-18 7:59
MemberEytukan10-Sep-18 7:59 
GeneralRe: Unions in C# Pin
jeron110-Sep-18 8:14
Memberjeron110-Sep-18 8:14 
GeneralRe: Unions in C# Pin
Eytukan10-Sep-18 8:46
MemberEytukan10-Sep-18 8:46 
GeneralRe: Unions in C# Pin
Sander Rossel10-Sep-18 10:26
professionalSander Rossel10-Sep-18 10:26 
GeneralRe: Unions in C# Pin
Eytukan12-Sep-18 20:28
MemberEytukan12-Sep-18 20:28 
GeneralRe: Unions in C# Pin
CPallini10-Sep-18 12:04
mveCPallini10-Sep-18 12:04 
GeneralRe: Unions in C# Pin
Eytukan12-Sep-18 20:26
MemberEytukan12-Sep-18 20:26 
GeneralRe: Unions in C# Pin
CPallini13-Sep-18 0:54
mveCPallini13-Sep-18 0:54 
GeneralRe: Unions in C# Pin
englebart11-Sep-18 3:07
professionalenglebart11-Sep-18 3:07 
GeneralRe: Unions in C# Pin
DSewhuk11-Sep-18 9:21
MemberDSewhuk11-Sep-18 9:21 
GeneralRe: Unions in C# Pin
Jerry W. Manweiler, Ph.D.11-Sep-18 12:31
MemberJerry W. Manweiler, Ph.D.11-Sep-18 12:31 
GeneralRe: Unions in C# Pin
Eytukan12-Sep-18 20:26
MemberEytukan12-Sep-18 20:26 
GeneralData Dictionaries Pin
NeverJustHere10-Sep-18 0:42
MemberNeverJustHere10-Sep-18 0:42 
GeneralRe: Data Dictionaries Pin
lw@zi 10-Sep-18 1:19
professional lw@zi 10-Sep-18 1: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.