Click here to Skip to main content
15,900,816 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: i and j Pin
Member 1168325122-Nov-16 19:10
Member 1168325122-Nov-16 19:10 
GeneralRe: i and j Pin
Ravi Bhavnani22-Nov-16 19:26
professionalRavi Bhavnani22-Nov-16 19:26 
GeneralRe: i and j Pin
OriginalGriff22-Nov-16 20:36
mveOriginalGriff22-Nov-16 20:36 
GeneralRe: i and j Pin
Nagy Vilmos22-Nov-16 21:57
professionalNagy Vilmos22-Nov-16 21:57 
GeneralRe: i and j Pin
Besinger23-Nov-16 0:55
Besinger23-Nov-16 0:55 
GeneralRe: i and j Pin
Tomaž Štih22-Nov-16 20:36
Tomaž Štih22-Nov-16 20:36 
GeneralRe: i and j Pin
cjb11022-Nov-16 21:00
cjb11022-Nov-16 21:00 
GeneralRe: i and j Pin
V.22-Nov-16 21:22
professionalV.22-Nov-16 21:22 
It might have come from FORTRAN, but "i" was also used for short of "index". When using nested loops the next letter was the most obvious ("j", "k", ...)

For me personally it makes perfect sense in some way. If you see a one letter variable in code, there is almost a 100% chance that it is a loop variable. Also a one letter loop variable in an array indication (some_array[i]) is easier readable than (some_array[index]). (though that is perhaps personal taste)
V.
(MQOTD rules and previous solutions)

GeneralRe: i and j Pin
OriginalGriff22-Nov-16 21:35
mveOriginalGriff22-Nov-16 21:35 
GeneralRe: i and j Pin
den2k8822-Nov-16 21:41
professionalden2k8822-Nov-16 21:41 
GeneralRe: i and j Pin
Peter_in_278022-Nov-16 23:07
professionalPeter_in_278022-Nov-16 23:07 
GeneralRe: i and j Pin
  Forogar  23-Nov-16 5:11
professional  Forogar  23-Nov-16 5:11 
GeneralRe: i and j Pin
Peter_in_278023-Nov-16 5:30
professionalPeter_in_278023-Nov-16 5:30 
GeneralRe: i and j Pin
Stefan_Lang24-Nov-16 23:19
Stefan_Lang24-Nov-16 23:19 
GeneralRe: i and j Pin
Stefan_Lang24-Nov-16 23:13
Stefan_Lang24-Nov-16 23:13 
GeneralRe: i and j Pin
User 483504723-Nov-16 3:23
User 483504723-Nov-16 3:23 
RantFree download != freeware Pin
Nighthowler22-Nov-16 15:00
Nighthowler22-Nov-16 15:00 
GeneralRe: Free download != freeware Pin
Ron Anders22-Nov-16 15:08
Ron Anders22-Nov-16 15:08 
GeneralRe: Free download != freeware Pin
lopatir22-Nov-16 18:21
lopatir22-Nov-16 18:21 
GeneralRe: Free download != freeware Pin
Ravi Bhavnani22-Nov-16 18:21
professionalRavi Bhavnani22-Nov-16 18:21 
GeneralRe: Free download != freeware Pin
Nighthowler22-Nov-16 19:20
Nighthowler22-Nov-16 19:20 
GeneralRe: Free download != freeware Pin
Ravi Bhavnani22-Nov-16 19:23
professionalRavi Bhavnani22-Nov-16 19:23 
GeneralRe: Free download != freeware Pin
Member 1168325122-Nov-16 19:13
Member 1168325122-Nov-16 19:13 
GeneralRe: Free download != freeware Pin
Nighthowler22-Nov-16 19:24
Nighthowler22-Nov-16 19:24 
GeneralRe: Free download != freeware Pin
den2k8822-Nov-16 21:46
professionalden2k8822-Nov-16 21:46 

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   495 votes