News for hackers. Stuff that matters.
Re:Again on 0-based vs. 1-based indexing by erostrate on Wednesday January 20, 2021 @07:15AM (#25845520)
I can't tell if this is a joke or not.
Re:Again on 0-based vs. 1-based indexing by laichzeit0 on Wednesday January 20, 2021 @08:06AM (#25845936)
It's hilarious that people are taking this comment literally. HN comedy gold. Reminds me of when I was working with a German work college and he just could not pick up on English sarcasm.
Re:Again on 0-based vs. 1-based indexing by valvar on Wednesday January 20, 2021 @08:37AM (#25846245)
I thought it was a pretty obvious joke, but then I saw lots of people seemingly seriously agreeing, so now I'm not so sure.
Re:Again on 0-based vs. 1-based indexing by userbinator on Wednesday January 20, 2021 @09:27AM (#25846775)
There's two groups of programmers, those who started learning with low-level, and those who started with high-level languages. I'm personally in the former group, and think there are definite advantages to doing it that way. You are probably in the latter.
Re:Again on 0-based vs. 1-based indexing by valvar on Wednesday January 20, 2021 @10:38AM (#25847657)
Sure, for adults, that's fine (but I still disagree with the approach, as pointers are a notably tricky concept that really isn't necessary in the beginning). But it's like saying that before teaching a kid addition and multiplication they should understand the Dedekind–Peano axioms -- it's simply overkill and more likely to discourage them than anything else. (But it depends on age and aptitude, of course, so obviously YMMV).

FWIW I started with K&R, but times have changed and I definitely don't think it's a pedagogically sound way of teaching programming.

Re:Again on 0-based vs. 1-based indexing by gjm11 on Wednesday January 20, 2021 @10:49AM (#25847808)
Back in the mid-to-late 20th century, there was a movement to teach mathematics rather that way, though I don't think it ever got as far as teaching small children the Peano axioms. The "New Mathematics", they called it. I remember encountering talk of sets and functions in UK primary school circa 1975.

It never worked very well in practice. I expect that when you're fortunate enough to have unusually able teachers teaching unusually able pupils it might do OK -- but then, in that situation, anything will do OK.

(Tom Lehrer fans will know about this from his song "New Math", with "It's so simple, so very simple, that only a child can do it" in the refrain.)

Re:Again on 0-based vs. 1-based indexing by cpcallen on Wednesday January 20, 2021 @05:34PM (#25852867)
For the record: Lehrer-style "new math" was what I was taught at elementary school in Ontario in the 1980s. I know it was not what my parents had been taught, because they couldn't understand how we did subtraction. We did do some other bases (mainly binary, as I recall) as well as modulus.

I certainly had unusually able teachers.

Re:Again on 0-based vs. 1-based indexing by userbinator on Wednesday January 20, 2021 @03:44PM (#25851739)
I don't think it's comparable to teaching arithmetic from a highly theoretical basis, since the type of low-level beginnings I'm advocating for are starting from a concrete foundation --- logic gates from relays and such, not unlike the approach used by Petzold's book Code.

Incidentally, that book has been praised for making computation easy to understand for non-programmers, which I would consider to be evidence for starting out low-level.

but times have changed

Not for the better, if you look at the average state of software today --- and I think a lot of it can be explained by the general lack of low-level knowledge.

Re:Again on 0-based vs. 1-based indexing by auxym on Wednesday January 20, 2021 @07:31AM (#25845654)
It has to be. Right?