Live data from Hacker News

Teaching Kids Forth

gracefulliberty.com

21–30 of 72 posts

Re: Teaching Kids Forth

#21
post #2

I really love Forth and spend almost all my free programming time playing with it and I'd never teach it to a class of kids.

Yeah Forth doesn't seem very good as a teaching language. Maybe the "first lesson" part where you're just showing how you can build a toy program from simple words would go well, but any nontrivial project where you have to start incorporating DUP and OVER and ROT and PICK and friends seems like a nightmare to teach to anyone who hasn't programmed before.

Re: Teaching Kids Forth

#25
post #4
post #2

I really love Forth and spend almost all my free programming time playing with it and I'd never teach it to a class of kids.

My kid was curious about my HP-35 and I taught them how it works. They got it in no time and I made it an exercise to rewrite math expressions in RPN. Not sure they are that interested in programming, but FORTH is a little sweet language. My first experience with it was Paul Lutus’ GraFORTH. On the Apple II it was ridiculously fast.

lutus also created arachnophilia and sailed or is sailing around the world.

n coined the term careware. iirc.

first-hand info. i had downloaded n used arachnophilia.

he is on hn.

Re: Teaching Kids Forth

#26
I used Forth to explain numbers in different radices to my grandson. Being able to interactively try things at the console was really helpful. It also helps to separate the internal number in the machine from how we display it, due to the different operators to print numbers as signed or unsigned. This is something that I have seen young programmers confuse.

I think another area where Forth can help young people is in understanding some low level details like memory addresses and reading and writing memory. It seems simpler than abstracting it to "pointers", more like assembler but interactive.

Re: Teaching Kids Forth

#27
post #18
post #2

I really love Forth and spend almost all my free programming time playing with it and I'd never teach it to a class of kids.

Kids need an antidote to the brain damage that is standard mathematical notation. I prefer lisps variadic prefix notation, but if you're just doing fixed arity functions without higher order functions than prefix and post fix are as good as each other, and you don't have the dreaded sea of parenthesis.

what aspect of school level “mathematical notation” is so bad as to be brain damage inducing?

Re: Teaching Kids Forth

#28
> I wanted to avoid teaching syntax. While Python makes sense as pseudocode [...] it is still nearly incomprehensible to new learners [...] I decided I wanted to either teach Forth or Haskell.

Sorry but this reads like a joke. If you find python incomprehensible, Forth and Haskell won't even register as languages.

Re: Teaching Kids Forth

#29
post #16

I doubly enjoyed reading this because I feel like I'm reasonably sure the author never ran this through an LLM because of the "cirriculum" typo.

I thought it was made on purpose so people have something xtra to chat about. Clever.

Re: Teaching Kids Forth

#30
post #16

I doubly enjoyed reading this because I feel like I'm reasonably sure the author never ran this through an LLM because of the "cirriculum" typo.

This is exactly the kind of spelling mistake ChatGPT makes if you ask it to make spelling mistakes to make text look more authentic.

What seems to happen is it will get a lot of words like curriculum wrong that people rarely spell incorrectly because they're long enough that if your English isn't confident you would look it up or use a spell checker, or spell words incorrectly that people don't usually spell wrong like 'imediate' or 'puzzel'.

Post reply on HN