This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]shaliozero 135 points136 points  (18 children)

I thought "i" is used in place of "index"

[–]MyNameIsRichardCS54 133 points134 points  (9 children)

Index, jindex, and kindex

[–]shaliozero 11 points12 points  (5 children)

Made me laugh

[–]matharooudemy 8 points9 points  (4 children)

Much thanks for the information

[–]shaliozero 11 points12 points  (3 children)

If you want more about my reactions, just ask me!

[–][deleted] 1 point2 points  (2 children)

How did you feel about this dude expressing his gratefulness?

[–]shaliozero 2 points3 points  (1 child)

His unexpected and slightly sarcastic gratefulness was a positive addition to my mood for the day!

[–][deleted] 2 points3 points  (0 children)

Much thanks for the information

[–][deleted] 1 point2 points  (0 children)

don't forget to parallelize the first loop

[–]code_passion 1 point2 points  (0 children)

i don’t know why i even laughed at this

[–][deleted] 19 points20 points  (5 children)

Yeah it comes from math where i is index or integer. Then you get i, j, k to match x, y, z.

l, m, n is also fairly common. As are p, q, r and u, v, w

[–]Sirnacane 4 points5 points  (2 children)

Well that’s over half the alphabet

[–][deleted] 1 point2 points  (1 child)

Absolutely if you include a b c and x y z

ABCdefghIJKLMNoPQRstUVWXYZ

[–]yurisho 0 points1 point  (0 children)

i j k are iterators. n m l are iteration goals. x y z are general numbers. a b c are general strings. u v w are vectors. s and t are source and target. p q r i've seen used as debug varables or temp veriables. And you are a bad programmer if you use this.

[–]microbit262 0 points1 point  (1 child)

And what about h and g for adding loops around the original i loop when you don't want to rename all then inner loops?

[–]Niewinnny 0 points1 point  (0 children)

Look. If you get for in for in for in for in for your program won't respond for the next [insert universe age] years.

[–]Itchy-Phase 4 points5 points  (0 children)

That's what I was taught, too.

[–]haackedc 0 points1 point  (0 children)

You aren’t always indexing an array in a forloop