by jasonkester · 6y ago · 0 comments
It took me a long time to find something better, and I've finally settled on Pico-8. It's the perfect combination of a simplified language that you have to actually type out in a stripped down editor, but with built in sprite and sound-effect tools and game loop methods that you can use to quickly get up and running with an actual 2d game.
It gets right to the heart of the great learning machines from the 80s (Apple ][, C64, TRS-80, Atari 400), but somehow fills in all the bits we've nostalgically romanticized over that would have made those machines a bad choice for kids today. Definitely check it out if you're thinking of getting your kids into programming:
I think your stance is needlessly puritan. At some point, the program has to actually do something and put it on the screen. Whether that is printing lines of text or moving a colorful sprite in some way is really not that different, except one is a lot more appealing to a young learner.
Beyond that it's pretty similar to the thing I (and you) recommend.
1. Prevent syntax errors.
2. Remove the need to type on a keyboard.
3. Remove the need to memorize basic commands.
The kids will eventually need to learn #2, but I think it's great that they can do programming in the interim.
#3 will start to come naturally once you've dragged enough if-else blocks in Scratch. Scratch is an on-ramp.
I will point out btw that Scratch is turing-complete.
The problem is not syntax, the problem is that they're bad at typing on a keyboard.
I suspect it's mostly because the keyboard is too big and stiff...
You could build a "little graphical puzzle pieces" tool for any AST. You could even enable it to be driven with any combination of keypress input and mouse- or touch-based drag and drop. (Or even expose a text-based dump, for "free-form" editing by advanced users.)
As someone who was a beginner in QBasic, the docs left a _lot_ to be desired, especially the graphics ones. As a teenager, I had a hard time make heads or tails of them.
Granted, that isn't to say I wouldn't be able to navigate them pretty well today, but I distinctly remember struggling to understand large parts of QBasic back in the day
By the time someone is a teenager, they likely have some experience doing algebra, which (I think) makes the idea of a "function" a lot easier to comprehend; variable substitutions and whatnot are kind of confusing to someone who isn't even used to seeing letters in math.
But yeah, the 8 year old had a game up and running the first day, and the 5 year old picked up enough just watching to suggest code changes.
I set up an old laptop to boot straight into fullscreen pico8 so they can just open the machine and get moving. Just like my overly romanticized memories of myself at the same age.
But it actually requires tons of patience if you really drill down into it
I made the fatal mistake of firing up a GameBoy emulator to show them examples of what they may create and naturally they became obsessed with classic pokemeon crystal instead ;)