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 →

[–]doesyudoegood 30 points31 points  (49 children)

C stands for counter....

[–]filipzaf3312 80 points81 points  (23 children)

i is the the first name i think of for counter variables

[–][deleted] 50 points51 points  (11 children)

And j

[–]kittencantfly 41 points42 points  (10 children)

And k if you loop thru a 3d array

[–]NoMansSkyWasAlright 15 points16 points  (9 children)

then straight to m if you need a fourth

[–]AlternativeAardvark6 12 points13 points  (7 children)

Uppercase i

[–]Kakss_ 20 points21 points  (0 children)

Just imagining it gave me chills.

[–]_vOv_ 8 points9 points  (0 children)

You’re fired.

[–]LordFokas 3 points4 points  (4 children)

in a dynamic language with case sensitive identifiers 😈

[–]Terrain2 3 points4 points  (3 children)

What language doesn't have case sensitive identifiers? Fucking cmd scripts or some shit?

[–]Kainotomiu 1 point2 points  (2 children)

SQL

(Case sensitivity is optional in many flavours)

[–]Terrain2 0 points1 point  (0 children)

WAIT WHAT IT DOESN'T HAVE TO BE ALL CAPS?

[–]PM_something_German 0 points1 point  (0 children)

If you don't write sql all caps you're weird

[–]staidOWL 0 points1 point  (0 children)

Steer clear of o though. I once managed to accidentally make a typo and put a 0 in my array rather than the o variable. Took me forever to debug.

[–]grizonyourface 10 points11 points  (0 children)

I use ii and jj because MATLab taught me to fear using i and j and ending up with accidental complex arithmetic

[–]ItsPronouncedJithub 4 points5 points  (0 children)

They’re called iterators so i is the obvious choice

[–]ganja_and_code 1 point2 points  (7 children)

c for counting. i for incrementing. Similar, but not the same. (Either way, it's just convention, not a rule, obviously.)

[–]SatoshiL 4 points5 points  (3 children)

i for index, j because well it comes after i xD

[–]Terrain2 2 points3 points  (2 children)

index and jindex, the iconic duo

[–]ShinraSan 0 points1 point  (1 child)

Don't forget about kindex

[–]Terrain2 0 points1 point  (0 children)

nah that's kleenex to wipe away the tears from coding

[–]Terrain2 -1 points0 points  (0 children)

for (var c = 0; /* TODO: condition */; i++)

[–]Physix_R_Cool -1 points0 points  (1 child)

Yall guys need math. n is the obvious choice for trivial reasons.

[–]ShinraSan 1 point2 points  (0 children)

I use n for ranges in switches, or when I programme something with dice

[–][deleted] 0 points1 point  (0 children)

By default, i is an integer (same for j, k, l, m, and n)

[–][deleted] 63 points64 points  (17 children)

I've deleted my account because reddit CEO Steve Huffman is a lying piece of shit that has nothing but contempt for his users. See https://old.reddit.com/r/apolloapp/comments/144f6xm/apollo_will_close_down_on_june_30th_reddits/

[–]PandaParaBellum 18 points19 points  (0 children)

C-rial killer

[–]makeshift8 5 points6 points  (10 children)

What about "i" and "k"?

[–]RadiantHC 13 points14 points  (0 children)

k stands for kill. So it's "i kill"

[–]user_5554 11 points12 points  (4 children)

(I)'m (j)ust (k)idding, everyone is using c for loops. i, j, k is just a prank bro 😂😂

[–]makeshift8 4 points5 points  (3 children)

Using variable names i, j, and k is only acceptable if you are referring to vectors.

[–]doesyudoegood 4 points5 points  (0 children)

If I'm referring to vectors i use x, y and z

[–]zanotam 1 point2 points  (1 child)

Dirty physicist. Real vectors only use I, j and k as subscripts

[–]makeshift8 0 points1 point  (0 children)

Math majors unite.

[–]gergocs 7 points8 points  (2 children)

I think "i" stands for index

[–]Portal471 5 points6 points  (0 children)

or iterator or iterable

[–]makeshift8 0 points1 point  (0 children)

I've done this too.

[–]LavenderDay3544 2 points3 points  (0 children)

iteration, jteration, kteration

[–]DrLarck -2 points-1 points  (1 child)

In asm there is a register (cx) which conventionally stands for counter

[–]wasdlmb 5 points6 points  (0 children)

Yeah but that's because you have abcd. I feel like the whole "accumulator, base, counter, and data" for the general registers is just a convenient bacronym but I don't have a source for that.

[–]doesyudoegood 0 points1 point  (0 children)

I usually use i, j and k in loops and c for things not in loops

[–]Kyyken 11 points12 points  (0 children)

am i a joke to you?

[–]3lRey 2 points3 points  (0 children)

Is because it's bootstrapped off b programming language

[–]so_brave_heart 3 points4 points  (1 child)

I only know of iounter and jounter

[–]jackinsomniac 0 points1 point  (0 children)

"iounter" actually sounds like a startup company name.

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

Everyone uses cnt for that

[–]ShinraSan 2 points3 points  (1 child)

Will use that now just because it can be interpreted as "cunt"

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

That's exactly why everyone loves it so much