|
Exactly. Know your audience.
|
|
|
|
|
*legacy coder detected*
why exactly is "loop" harder to read then "i"? Cant you read?
Copy, paste, compile, erase
|
|
|
|
|
Bit like f u n e x? (You'll need to look that up if you don't know what I mean).
Using i is so 20th century.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
mark merrens wrote: Using i is so 20th century.
That and Apple will probably patent it before long...
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
|
|
|
|
|
i think it's alread patented...
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)
"Given the chance I'd rather work smart than work hard." - PHS241
"'Sophisticated platform' typically means 'I have no idea how it works.'"
|
|
|
|
|
We programmers are a self-centered bunch. It's never about the other person, it's always "I I I" this, "I I I" that. jk, jk. lol.
Hmmm...
I suppose the letters in preference would have to be: ijklo.
An expanding counter-clockwise spiral starting with "i"!
From this, we can ascertain the correct letters to use for each new level of loop nesting: ijklouhmpygntfbrdvescwaxqz.
Any other order is incorrect.
|
|
|
|
|
AspDotNetDev wrote: From this, we can ascertain the correct letters to use for each new level of loop nesting: ijklouhmpygntfbrdvescwaxqz.
How deep did you go into the spiral? I usually stop on the 'g'.
Greetings - Jacek
|
|
|
|
|
I've never had a need to go past "c".
|
|
|
|
|
|
Look at any mathematics text that is older than computers. You will find i, j, k, m, n rampant as indexes for just about any formula you can find. Also, x, y, z are common variables and A, B, C are commonly used as constants.
--
Harvey
|
|
|
|
|
I second the math heritage.
Remember the Capital Sigma sum sign like you see in Excel now?
<a href="http://en.wikipedia.org/wiki/Summation#Capital-sigma_notation">http://en.wikipedia.org/wiki/Summation#Capital-sigma_notation</a>[<a href="http://en.wikipedia.org/wiki/Summation#Capital-sigma_notation" target="_blank" title="New Window">^</a>]
PI is used for products.
<a href="http://en.wikipedia.org/wiki/Multiplication#Capital_Pi_notation">http://en.wikipedia.org/wiki/Multiplication#Capital_Pi_notation</a>[<a href="http://en.wikipedia.org/wiki/Multiplication#Capital_Pi_notation" target="_blank" title="New Window">^</a>]
|
|
|
|
|
As someone already stated, I think it's i for iterator / index. But it also makes it easy to accidentally place a 1 in there e.g. dataset.Tables[1] and not spot a mistake.
Sometimes I'll use r and c if iterating through rows and columns e.g. dataset.tables[0].rows[r][c]
|
|
|
|
|
But I shudder to think why someone would venture right across the keyboard for a '1' instead of an 'i'. Yes, dataset.Tables[1] will work, but why, oh the humanity, why, are you not using the table name?
|
|
|
|
|
It could happen during testing, but I agree that using the table name is better.
|
|
|
|
|
Brady Kelly wrote: But I shudder to think why someone would venture right across the keyboard for a '1' instead of an 'i'.
Bad habits from the type writer era.
http://www.flickr.com/photos/textlad/3564672292/[^]
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
I tend to use Index instead of i (I definitely like verbose identifiers). And when I need several indexes, like in nested loops, I naturally call them Jndex , Kndex , Lndex ... (not kidding).
I have not yet come to the point that I use Number and Mumber for counts.
|
|
|
|
|
If it wasn't for our coding standard, I would employ index, jndex... today. I like that idea.
Matt
|
|
|
|
|
You can use it undercover by means of a macro #define i index
|
|
|
|
|
Why not just skip to "spa"
|
|
|
|
|
i am using 'i' and 'j' for iterating 2D arrays because 'i' and 'j' mean x and y in Cartesian coordinates.
http://butterfly.blog.ir[^]
|
|
|
|
|
Don't they mean 'horizontal' and 'vertical' ?
|
|
|
|
|
maybe but I don't think so.
horizontal -> h not 'i'
&
vertical ->v not 'j'
the 'i' and 'j' are symbols for horizontal and vertical vectors.
|
|
|
|
|
probably i -> row and j -> column then
|
|
|
|
|
Hmmmmm...
|
|
|
|
|
I think you are right. If not otherwise defined FORTRAN would default to integer variables whose names started with "I" through "l" (ell) I believe. Not too sure about the ending letter as all *good* programmers defined their variables.
After years of programming I still use "t" for temporary variables (like creating a value for the debugger to see) and "t.t" for file names for the same sort of thing - temporary names while developing. This comes from the old TRS80 system.
Old habits die hard, eh?
|
|
|
|