|
Mycroft Holmes wrote: Why do we seem to use i and j for loop variables?
In the east we traditionally used n and m. And p and q for pointers. It wouldn't surprise me if it was just to be different from the decadent west.
|
|
|
|
|
If you took the Fortran IJKLMN, are the letters in the same order when translated to eastern languages? That may explain why your typically using n/m.
|
|
|
|
|
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. wrote: If you see a one letter variable in code, there is almost a 100% chance that it is a loop variable.
Or you are in QA...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
V. wrote: loop variable in an array indication (some_array[i] ) is easier readable than (some_array[index] ). (though that is perhaps personal taste) It depends if that variable has other meaning / is meant to be stored but yes, I concur.
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
I was initially going to nod to the FORTRAN crowd, then I thought further back, to linear algebra. Indices in vectors and matrices were traditionally i, j, ...
My 2cents.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
The designers of FORTRAN used I,J,...etc. because FORTRAN was designed for FORmula TRANslation and a lot of the language development came from having to process this linear algebra. So when the Integer variables were defined it was natural to use I and J, etc.
So which came first the chicken or the egg?
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
There is no chicken/egg debate. I'm saying FORTRAN followed the linear algebra usage.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
I concur. Tensor algebra is much older than FORTRAN, and they always used i, j, k, l for indices, continuing with m, n, and (rarely) more when needed. Mathematicians are notoriously lazy, so they never waste more than one letter for an index variable.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
|
|
|
|
|
For matrices I typically prefer row and column . That's still reasonably short, and can help a lot in the readability of some of the matrix operations. (talking of linear algebra matrices here, but you might apply the same reasoning to database tables, resulting in index names like record and field )
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
|
|
|
|
|
|
If it does the job properly, I have no problem paying for software. On the other hand if it is a little buggy but free, fine again. However I really hate slimy advertising that wastes my time with misleading search results. Either it is paid AND buggy, or reasonably good but costs hundreds of dollars to use after the trial.
If it is a free TRIAL, they could f*!%$g well say so from the start.
And while I'm here, I despise sleazy sites that pollute search results with links to search results on their own site. S**tware informer and the like should be blocked by Google.
There, I feel much better now.
|
|
|
|
|
Free Download generally means it costs something.
Free generally means it's freeware.
At least for now.
|
|
|
|
|
I've also seen "Free Installation" a couple of times...
ummm, what?
Sin tack ear lol
Pressing the "Any" key may be continuate
|
|
|
|
|
Agreed wholeheartedly. Which is my[^] freeware is truly free.
BTW, NoNags[^] is a good directory of real freeware. I've been using them since the 90s.
/ravi
|
|
|
|
|
I like the no-nonsense minimalist design on you site. A bit old, but what the heck, so am I
|
|
|
|
|
Thanks. I built it in 1997 using Notepad and have found no reason to change it.
/ravi
|
|
|
|
|
It gets worse when you are trying to find obscure old drivers and pcidatabase is down.
Install our tool, pay here, why not click one one of these 100+ fake download links instead?
And the wonder of advertisement keeps these sites alive I guess...
|
|
|
|
|
Been there too. When the manufacturer doesn't provide driver downloads (usually when they go bust or sell out), it means jumping through hoops looking up device IDs and all kinds of BS during a OS reinstall.
|
|
|
|
|
My best experience.
1999, 56k modem just bought, no previous modems or Internet connection of course. The drivers on the floppy do not work. Phone the company? A Fax answers. Rembmer, no Internet so no way to reach them. After wweks of hocus pocus (it costed 50.000 lire after all, ~60€ now) we give up and buy another modem, this one works. Old one got buried and forgotten.
2004, Internet available, we try to install that modem on another PC, download the drivers from the web: they work, while the included ones not.
To make it short: a device that enabled a person to access to the Internet needed the Internet to download it's own drivers, otherwise it wouldn't work. Damn good.
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
If it's windows apps you're after, just go to NoNags[^].
They won't even list software that has nag screens.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
That's how long it's taken me to register a simple (as in: easy to distinguish as being unused for any "normal" purpose, and with no prior art-ishness) trademark in all required countries.
Talk about a fruggin' PITA.
I should have settled for ™, and bugger the ®.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Hi, Mark,
I would really appreciate seeing an article here on the process you went through.
cheers, Bill
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
(Added to the To Do list)
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Thanks to the internet, one can read old electronics and computer magazines from the first issues in the 1950s to the last in the 1990s or 2000s.
I was looking for hardware projects and programs for my old computer, as well as some time travel back to a time when everything was new and programming was fun.
I also found some issues I owned back then, including this one.[^]
Isn't that a great robot? My only trouble with such robots all this time has been that they are blind and deaf and that processors used to be too slow to process the input from the sensors.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
modified 22-Nov-16 18:07pm.
|
|
|
|