Click here to Skip to main content
14,218,402 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: Old age shows its mark... Pin
j snooze31-Jan-19 11:25
memberj snooze31-Jan-19 11:25 
GeneralRe: Old age shows its mark... Pin
Mark_Wallace1-Feb-19 2:03
memberMark_Wallace1-Feb-19 2:03 
GeneralRe: Old age shows its mark... Pin
Kornfeld Eliyahu Peter31-Jan-19 11:26
mveKornfeld 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
memberkmoorevs31-Jan-19 11:49 
GeneralRe: Old age shows its mark... Pin
Brady Kelly31-Jan-19 22:09
memberBrady Kelly31-Jan-19 22:09 
AnswerRe: Old age shows its mark... Pin
Super Lloyd31-Jan-19 12:32
memberSuper Lloyd31-Jan-19 12:32 
GeneralRe: Old age shows its mark... Pin
the goat in your machine31-Jan-19 16:00
memberthe 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
memberCharles Programmer1-Feb-19 5:15 
GeneralRe: Old age shows its mark... Pin
PIEBALDconsult31-Jan-19 17:44
protectorPIEBALDconsult31-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
memberRetired201731-Jan-19 23:22 
GeneralRe: Old age shows its mark... Pin
Member 79891221-Feb-19 0:58
memberMember 79891221-Feb-19 0:58 
GeneralRe: Old age shows its mark... Pin
MKJCP1-Feb-19 1:53
memberMKJCP1-Feb-19 1:53 
GeneralRe: Old age shows its mark... Pin
Member 79891221-Feb-19 2:32
memberMember 79891221-Feb-19 2:32 
GeneralRe: Old age shows its mark... Pin
MKJCP1-Feb-19 2:42
memberMKJCP1-Feb-19 2:42 
GeneralRe: Old age shows its mark... Pin
Member 79891221-Feb-19 3:32
memberMember 79891221-Feb-19 3:32 
GeneralRe: Old age shows its mark... Pin
Bruce Patin1-Feb-19 4:49
memberBruce Patin1-Feb-19 4:49 
GeneralRe: Old age shows its mark... Pin
Overtkill1-Feb-19 5:06
memberOvertkill1-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
memberjschell2-Feb-19 7:12 
GeneralAt the risk of showing my ignorance... Pin
dandy7231-Jan-19 10:11
memberdandy7231-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.