News for hackers. Stuff that matters.
Re:One guy's experience with programming by lucio on Wednesday November 26, 2014 @11:25PM (#8665982)
I've also had a Spectra, and after that an 88 weighted keys alesis QS8. had the ZX Spectrum (i'm still using n as default for loop variable) and then got the marvelous commodore 128. good old days. I was born in '71.
Re:One guy's experience with programming by slight on Thursday November 27, 2014 @02:24AM (#8666324)
> (i'm still using n as default for loop variable)

Haha! I'm glad I'm not the only one.

Re:One guy's experience with programming by spacemanmatt on Thursday November 27, 2014 @09:04AM (#8667300)
At some point I considered myself a "grownup" because I stopped using the following loop variables: i, cnt, counter, ctr, var, crap, junk, idx. Whatever. I'm back to using i now, though instances of coding a loop are almost gone since I prefer FP these days.
Re:One guy's experience with programming by spacecowboy_lon on Thursday November 27, 2014 @04:14AM (#8666530)
lol you can tell who the old school Fortan programers are a sthey will use i and j
Re:One guy's experience with programming by elsurudo on Thursday November 27, 2014 @04:16AM (#8666532)
I thought everyone used i and j? No seriously, my first language was VB 6 (or 5?), so I'm not remotely old-school.
Re:One guy's experience with programming by hga on Thursday November 27, 2014 @07:28AM (#8666934)
Well, if you go far enough in math, you'll learn the i, j, etc. convention, which is where FORmulaTRANslation got it (unless otherwise declared, variable names starting with i through n are integer).

And you might learn it indirectly from all the people and code that follow this convention. In my case, it was FORTRAN first, albeit perhaps in the same academic year 1977-8 where I was introduced to i, j, etc. in Algebra II.

Re:One guy's experience with programming by mardurhack on Thursday November 27, 2014 @01:43PM (#8668410)
Oh god, I've always thought that i stood for "index". And j...Well it is the most logical name for the next index. :D
Re:One guy's experience with programming by Queue52 on Thursday November 27, 2014 @11:54PM (#8669720)
Actually it stands for "iterator" and j and k are alphabetically next so your assumption there is spot on. I worked at a company that had coding standards that were put in place by a group of people who said "you can't use 1 letter abbreviations as they don't make any sense" to which I replied with "unless your using an iterator in a loop". Exception found.
Re:One guy's experience with programming by mardurhack on Sunday November 30, 2014 @08:04AM (#8676726)
Oh thanks for clarifying that!
Re:One guy's experience with programming by hga on Thursday November 27, 2014 @03:00PM (#8668589)
It might, I don't know the origin of i, j etc. in math....
Re:One guy's experience with programming by Dewie on Thursday November 27, 2014 @10:42AM (#8667630)
I use i,j for 2dimensional arrays in Java. I learned programming in ... 2010.
Re:One guy's experience with programming by kyllo on Friday November 28, 2014 @03:13AM (#8670081)
Or C or Java programmers... i and j are still the convention in all the mainstream imperative languages.
Re:One guy's experience with programming by Razengan on Thursday November 27, 2014 @02:18PM (#8668505)
I grew up on a ZX Spectrum but never got around to programing on it. I've always wanted to start dabbling with assembly on a relatively-simple platform, it's like a nagging unfinished business in the back of my head.

Can you recommend any good resources (preferably books available online) to start with, that one could apply in an emulator?

Re:One guy's experience with programming by stephen_hazel on Thursday November 27, 2014 @03:38PM (#8668666)
Hmmm, I don't use assembly any more. I've settled on c++ (and java when forced into it). It's nice to know especially in that you get a real tight handle on what a CPU actually is. But I'm not sure how to go about learning it these days. The only thing I did on my ZX81 was use it's so called graphics mode to plot successive shrinking squares (using "fast mode" where it turned the graphics off for speed)

assembly was the only way to do anything on the XZ81,C64. You needed it a little on the Amiga and MS/DOS graphics (with C doing most the work). On Win95 I used it for a hi res timer (only a couple lines). But haven't used it since. If I were to dig in now, I miiiight start with the C++ compiler's assembly listings. Look at your C++, look at the unoptimized assembly the compiler generates and see how they equate. Google will find quite a few sites of people still using 80x86 assembly I think. Good luck to ya.