Click here to Skip to main content
15,892,005 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: Old age shows its mark... Pin
j snooze31-Jan-19 11:25
j snooze31-Jan-19 11:25 
GeneralRe: Old age shows its mark... Pin
Mark_Wallace1-Feb-19 2:03
Mark_Wallace1-Feb-19 2:03 
GeneralRe: Old age shows its mark... Pin
Kornfeld Eliyahu Peter31-Jan-19 11:26
professionalKornfeld Eliyahu Peter31-Jan-19 11:26 
GeneralRe: Old age shows its mark... Pin
CPallini31-Jan-19 11:37
mveCPallini31-Jan-19 11:37 
GeneralRe: Old age shows its mark... Pin
kmoorevs31-Jan-19 11:49
kmoorevs31-Jan-19 11:49 
GeneralRe: Old age shows its mark... Pin
Brady Kelly31-Jan-19 22:09
Brady Kelly31-Jan-19 22:09 
AnswerRe: Old age shows its mark... Pin
Super Lloyd31-Jan-19 12:32
Super Lloyd31-Jan-19 12:32 
GeneralRe: Old age shows its mark... Pin
the goat in your machine31-Jan-19 16:00
the goat in your machine31-Jan-19 16:00 
well another memory muscle reason for many...
before FORTRAN many learned BASIC (back in the day when a school would have 2 or 3 TRS-80 or similar computers, the first version (Model I with 4k RAM) only had single char variables A..Z. Later the Model II (with the massive 16k) allowed 2 letters AA..ZZ.

anyhoo it was actually in the Programming Guide (probably inspired from FORTRAN) that suggested
I, J, K, L... for "general" integers (in particular FOR loops), (also ref: I for iterator)
S, T, U for general strings.
"Important" variables used A, B, C (effectively the global variables)
suggested sticking to single letters for compatibility with Model I.
Some versions of FORTRAN also had that 2 letter limit.

"That way you could better determine what any variable was for/about."

mock it if you will, but given the naming limitations of the time at least some were already invested enough to come up with some common coding styles.

- Nowadays i, j as iterators/offsets even makes appearances in mathematics,

- when you see "for (i = 0; ..." you already know the intent (unless you or the programmer are idiot(s), and that's even if it's someone else's code.
-- and inasmuch almost makes it better to keep using i, j
... unless you're some sort of purist 'style wanker' who says 'the code may be misunderstood'
..... (and let's face it: such comments are nearly always a reflection of the lack of abilities of the idiot quoting them).
GeneralRe: Old age shows its mark... Pin
Charles Programmer1-Feb-19 5:15
Charles Programmer1-Feb-19 5:15 
GeneralRe: Old age shows its mark... Pin
PIEBALDconsult31-Jan-19 17:44
mvePIEBALDconsult31-Jan-19 17:44 
GeneralRe: Old age shows its mark... Pin
V.31-Jan-19 19:59
professionalV.31-Jan-19 19:59 
GeneralRe: Old age shows its mark... Pin
Marco Bertschi31-Jan-19 21:44
protectorMarco Bertschi31-Jan-19 21:44 
GeneralRe: Old age shows its mark... Pin
Retired201731-Jan-19 23:22
Retired201731-Jan-19 23:22 
GeneralRe: Old age shows its mark... Pin
kalberts1-Feb-19 0:58
kalberts1-Feb-19 0:58 
GeneralRe: Old age shows its mark... Pin
MKJCP1-Feb-19 1:53
MKJCP1-Feb-19 1:53 
GeneralRe: Old age shows its mark... Pin
kalberts1-Feb-19 2:32
kalberts1-Feb-19 2:32 
GeneralRe: Old age shows its mark... Pin
MKJCP1-Feb-19 2:42
MKJCP1-Feb-19 2:42 
GeneralRe: Old age shows its mark... Pin
kalberts1-Feb-19 3:32
kalberts1-Feb-19 3:32 
GeneralRe: Old age shows its mark... Pin
Bruce Patin1-Feb-19 4:49
Bruce Patin1-Feb-19 4:49 
GeneralRe: Old age shows its mark... Pin
Overtkill1-Feb-19 5:06
Overtkill1-Feb-19 5:06 
GeneralRe: Old age shows its mark... Pin
Dr.Walt Fair, PE1-Feb-19 7:03
professionalDr.Walt Fair, PE1-Feb-19 7:03 
GeneralRe: Old age shows its mark... Pin
Dr.Walt Fair, PE1-Feb-19 8:30
professionalDr.Walt Fair, PE1-Feb-19 8:30 
GeneralRe: Old age shows its mark... Pin
jschell2-Feb-19 7:12
jschell2-Feb-19 7:12 
GeneralAt the risk of showing my ignorance... Pin
dandy7231-Jan-19 10:11
dandy7231-Jan-19 10:11 
GeneralRe: At the risk of showing my ignorance... Pin
abmv31-Jan-19 16:43
professionalabmv31-Jan-19 16:43 

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.