387 points · by andrewstuart · 8y ago · 328 comments
Like in ye olde computer days when you brought home your Commodore 64 and turned it on you were in basic.
I'm guessing everyone will want to say "Raspberry Pi" of some form, but does that meet my requirement? Plug it into TV, turn it on and you're in basic and can start programming. Ideally with some sort of book or resource for learning how to make the computer do things on the home TV screen.
When I was a kid, I was heavily into video games and had a burning desire to create my own. However, the options for doing so were not great. One of my middle school teachers tried to introduce us to programming via creating Space Invaders in perl, which went as well as you might imagine. There were a few GUI game making applications that were all terrible and extremely limited. I eventually managed to make a game using Flash, but all the overhead of arcane Actionscript APIs was overwhelming and discouraging. I stopped programming and for several years thought I was going to go into media, creating films and animation. I eventually picked up programming again in college, but there were many years of programming experience I could have had if I had stuck with game dev.
I'm convinced that if PICO-8 existed when I was originally interested in making games, I never would have stopped programming. PICO-8 is the perfect balance of easy-to-learn and powerful. Lua is a good first language because it's so small, and encourages you to build your own solutions rather than rely on magical libraries. For example, I never knew how a list-shuffling algorithm (Fisher-Yates) worked until I needed to write my own because Lua and PICO-8 don't provide one.
The limited sprite and sound options encourage you to spend time not on the assets but on the gameplay (the code). It's quick to get things on screen and working because the PICO-8 API is simple, logical, and not arcane (cough Actionscript cough).
Basically, it introduces programming in an instant-gratification way that's able to grab and hold a child's attention, while still being powerful enough to produce games that aren't hamstrung by toy programming languages.
Also of note: it was made by the creator of Voxatron (the only game I know of that really explored voxels), and is available as a $5 add-on to that.
Wikipedia page told me of a pocket computer preloaded with PICO-8: Pocket CHIP[1]. It seems to be exactly what the OP was asking for.
Alas, the Kickstarted company went belly up, failing to deliver all the preorders.
[1]https://en.wikipedia.org/wiki/CHIP_(computer)#Pocket_CHIP_an...
Really too bad that the company went under.
Key weaknesses of Pico-8 for kids learning to program:
1. The editor runs at the same resolution that the games do. Maybe this is because they didn't want to make their VM flexible enough to deal with multiple resolutions, or they just wanted to make the illusion that the Pico-8 is its own machine very consistent, but the end result is still a painful code editing experience. When I make example programs for my kids, I need to compromise between descriptive variable names and indenting code blocks.
2. Deviations from the standard lua API/libraries mean that normal learning resources like PIL have to be interpreted with an asterisk.
3. This is a minor thing, but the fixed palette is annoying. In graphical terms, Pico-8 lies roughly between the Atari 2600, 7800, and NES, but all of those systems handled colors more flexibly.
4. Splore allows children to find games that are not appropriate for their age. It's just not designed for kids and parents. My son found a game featuring smoking and thought it looked SO COOL (this was easy to disabuse him of). He also found a game that puts you in the role of a cyberbully, and the subtle psychological effects of that sort of "edgy" game aren't as easily undone with a single conversation. It is possible to mitigate this by putting whitelisted carts into the bbs carts folder and then making that folder read-only.
TIC-80 improves on the first three points. The editor is still running at the same resolution as the games, but uses a higher resolution (and the editor can optionally use a thinner font). The lua implementation is much more standard. And the palette can be changed (even per-scanline, I think). The music editor lets you draw your own waveforms, but in other respects is less intuitive than Pico-8's. (I haven't looked at TIC-80's cart browser so I can't comment on it.)
Multiple resolutions would absolutely break the "Fantasy console" feel of Pico-8, even though I understand why programmers universally hate that. To be fair a lot of people do code editing outside of the Pico-8 editor.
#4 is an interesting point. The trick here is that different parents have different ideas of what is and isn't appropriate, and of course different kids will have different responses. It seems like the answer is to maybe have a version of Pico-8 that removes splore and expands the demo carts with some universally safe, popular titles.
TIC-80 is cool btw and might be a better learning environment for kids. I don't like it (or any of the other fantasy console\pico-8 clones) quite as much as Pico-8 because they remove constraints, making them feel more like generic game editors and less like imaginary retro computers.
Indeed, which is why they won't change, which is why (for me) an alternative like TIC-80 is preferable to waiting around for Pico-8 to become what I wish it were.
The virtual console space is tantalizing, but the culture around it has different tastes from mine. For example,
>I don't like it (or any of the other fantasy console\pico-8 clones) quite as much as Pico-8 because they remove constraints
This is a pretty common sentiment on the Pico-8 boards; I understand there are people looking for a certain aesthetic thrill that comes from working within the constraints to make something unexpectedly cool. And yes, when I have time, I would like to make e.g. a metroidvania that uses individual tiles to encode 4x4 chunks of tiles to allow for a big-ass map. It just so happens that those constraints aren't necessary for, and sometimes are in tension with, the goals of a good first-coding-experience learning environment.
I also totally understand why virtual consoles almost all use BASIC or lua, but (for me, not for my kids) I wish there were an option with static types. The combination of not being able to see much code on the screen at once plus no static type checking is pretty uncomfortable for me.
My ideal machine would be a C64 and Spectrum combined, 4 commodore sound chips, screen resolution increased only about 50%, 256kB ram, possibility of running 6502 and z80 in parallel, at quadruple speed.
Could be just nostalgia, but the continuing demo scene for these computers is incredible[a] and beautiful new games also get made to the old frugal specifications.
Games can be compiled to HTML5, ando/or distributed as PNG files with all source code and assets included. There's also a builtin community game browser with ratings, etc. Some bigger name games were prototyped in Pico-8 (i.e., Celeste), and it has a lot of love in the indie community.
a) The code editing story was a bit nicer (better resolution / builtin support for external editing and reloading etc)
b) If there was some kid-specific introductory game programming content for it (even "type all this in and play around with it after" worked for me as a kid)
If are into games, check out Celeste. Just the music is reason to play this game (I played it on PS4 but all versions are equal).
* Pico-8: https://www.lexaloffle.com/pico-8.php
* Liko-12: https://liko-12.github.io/
* Tic-80: https://tic.computer/
* Pixel Vision 8: https://www.pixelvision8.com/
I have no idea how they compare to each other.
A couple on the list run BASIC! E.g. [2].
I just learned there's this thing "Windows 10 IoT", [3] a Win10 version for low power devices like the raspberri pi.
Would be interesting to try to run B8 in there!
1: https://github.com/paladin-t/fantasy
2: https://store.steampowered.com/app/767240/BASIC8/
3: https://developer.microsoft.com/en-us/windows/iot/Downloads
Pixel Vision 8 is more flexible and complex than the other alternatives. One KEY difference between it and the others is that you can define your own editor tools... but the way this is done means that you must save your work every time you switch from tool A to tool B, or your work in tool A will be lost! It also is built with a focus on interoperability with external tools; it isn't as focused as the others on being a cozy self-contained environment.
https://www.theverge.com/circuitbreaker/2016/7/19/12227806/p...
Unfortunately, the company has shut down, and these aren't made anymore. But it looks like they can still be found on eBay:
https://www.ebay.com/itm/Pocket-C-H-I-P-sealed-portable-hand...
You can explain it in an afternoon. Try that with C++ or JavaScript.
Sadly they went out of business.
It would be easy to build something similar with a Raspberry Pi though.
It's a simple, 2D, open-source game engine that runs on all platforms — I'd recommend this and other sandbox-style environments to anyone getting into programming.
The pico-8 version exists as a game within the game and is great fun as well!
Website: http://www.celestegame.com/
GDC talk about development of Celeste: https://youtu.be/4RlpMhBKNr0
*BASIC
>_
and bob's your uncle: you get a nice BBC BASIC prompt at the bottom of your screen.
https://www.riscosopen.org/content/downloads/raspberry-pi
(that said, why not use pi + python? It's the new BASIC. And it supports turtle graphics besides ;-) )
Raspberry Pi Zero + Risc OS Pico.
The fastest BASIC interpreter ever written, with local variables, recursion, inline ARM assembler, and more.
Advantages over Python etc. on Linux:
* No complex OS underneath;
* No need to learn arcane concepts like "editors" and "files" yet;
* No significant whitespace;
* No weird C-isms like the output statements, the two meanings of % or any of that legacy nonsense it inherits from 40y of crap underneath;
* Zero maintenance required.
Blinding fast, cheap as chips, runs on a dribble of power, solid-state and silent.
If the kid takes to it, can be trivially enhanced to a full rich GUI OS with tons of educational apps and software.
Do you have experience with teaching python to kids? I am afraid to try it with my son because white space is important, I tried only Scratch and making him think as "a machine" is hard enough adding syntax errors on top would make the job much harder, let me know if you have experience with this and if you think I am wrong.
But unlike BASIC, Python will grow with you and you can use it for non-trivial projects without fighting with the language. I certainly wish my old Apple II had Python; it would have prevented the immense jump to a "real" programming language, because I kept trying to go from AppleSoft BASIC to C and banging my head into a wall, nothing about it made any sense. (Perhaps I would have had better luck going from BASIC to Pascal or QBasic, but for some reason I never thought to try it. I think because the very few computer-literate adults I knew were minicomputer people and led me to believe that C was the only thing worth learning.)
Not that working up from a text prompt is the only way to learn how to interact with computers, certainly. I know a fair number of people who learned to program due to environments like HyperCard, which are much more visual, and let you start with the art and storytelling and then glue things together with code, rather than start from the code.
But for some people, including myself, the feeling of interacting directly with a computer via a simple prompt, and making it do things each time I pressed the Return key, was quite powerful.
But Python doesn't let you do that - there's no goto...
While I'm being somewhat tongue-in-cheek, I do think it's true that
while true:
print("BUTTS")
carries quite a bit more conceptual overhead than the BASIC equivalent, and is not exactly a "very simple imperative syntax". You don't have the simplistic and obvious "goto" - instead you have the ungrammatical and obtuse "while true". And then there's the indentation, the colon, and the parentheses around the argument to print... all explainable of course, but all requiring explanation. To fully grok it you need to understand booleans and conditions, block structure, and function calls. Of course it's all perfectly obvious to experienced eyes but remember the mountain you have to climb when you're first starting out - more than one or two seemingly inexplicable things when you're first starting out can be very discouraging.Worse, to my mind, is the loss of that small moment of enlightenment regarding complex behavior emerging from computer programs - with 10 PRINT BUTTS : 20 GOTO 10 you are composing two atomic, individually obvious statements to create something more - an infinite loop. When one of the statements is a slightly more complex line that essentially means "do an infinite loop", some of that magic is lost.
In other words, I think a child will more easily learn about indentation, than handle writing flat code, which can get difficult to understand pretty quick
My point is that something that is obvious and simple for us for someone else makes no sense(he is 12 and I don't have experience teaching other children),
For now I gave up on teaching coding to him, maybe he needs to grow a bit more to understand the abstract thinking required.
Completely OT, but I had just had to look up this phrase and the supposed origin made me chuckle: https://en.wikipedia.org/wiki/Bob%27s_your_uncle
The main disadvantage of most computing devices is that they offer too many options; making them mentally unwieldy. A "single purpose device" is created to support just one purpose. The Kindle is perhaps the most famous example; it practically created an industry. Sure, it can do more than just present books, but everything is designed to support reading.
Ideally, there would be a "computer", where every aspect of it was designed to teach computer programming.
I often fantasize about a device designed solely for producing new writing. It would have a nice screen, and a nice keyboard, but only a very very limited web-browser, and would sync with Google Docs, Office, or something similar, so that you can do the more advanced stuff elsewhere.
Such devices are about empowering the user to go down a specific path; one they choose as soon as they start interacting with the device.
Kindle -> Reading
Typewriter -> Writing
Hammer -> Hitting things
"Power to Basic" -> Learning to program
(Maybe something as simple as physical location, color, a "sticker", or something else altogether.)
iPhone -> sell apps & subscriptions
Android phone -> sell ads / harvest user information
Are you lamenting the fact that there's no such thing or that it's not more widespread?
Also, it's much more difficult to find one if you insist on a particular carrier. For example, the popular line of Blu dumbphones (which still have cameras) operate on 2G-only GSM, and don't work with Verizon, AT&T, T-Mobile, Sprint, or Boost (i.e. all of the major providers). You have to use something like StraightTalk or Simple Mobile (i.e. prepaid discount service, similar to Tracfone) to make them go.
There's no reason for a bare-bones dumbphone to have any of that shit, or for it to cost more than $20.
Or have I missed your point?
You learn programming so you can do the things you want to do. Handicapping the device handicaps the whole project.
On the other hand, if your machine is able to run the programs you write, then it isn't a single-purpose device.
Alternatively Pi's (or old/cheap pc's) that boot straight into Minecraft Eduction Edition:
https://education.minecraft.net
This has paths for the very young in minecraft itself to older kids using ide's.
Dropping them into the command line / IDE of any language / environment is likely to leave them both unimpressed and lost. Neither the Raspberry Pi (more software oriented) or Arduino (more hardware oriented) is going to be terribly impressive from a standalone point of view compared to the PC/iPhone/XBox they're used to. But the thing they've got going for them are a lot of cool projects other people have done with them, step-by-step tutorials, and pre-built stuff that's relatively easy to re-create and/or integrate. Will the 8-bit recreation you have in mind have any of that?
My kid is still a toddler, but I think I might put a stripped down CLI-only computer in his room when he reaches 5 so he can at least play with it if he wants. It doesn't need to count as dangerous screen time, there is no internet to worry about, and he probably won't get addicted to a CLI at least. I mean, the alternative to that is probably no computer in his room until he is 16.
A real computer, by definition is something you can program.
Today you don't just find accessible devices meeting that requirement in the wild.
In the microcomputer era you pressed the power button and you had a REPL prompt.
Today there _is_ a computer hidden somewhere inside you laptop or mobile device, but you need to know where to dig to find it.
In the 80s a newly hatched geek just had to crawl over the beach sand until he reached a device and it was a computer.
Today's kids are surrounded by computers, but they are all deeply embedded in the devices around them.
After hatching, a modern geek needs someone needs to break the husk around their device to get at the computer first.
So your recipe is exactly the recipe for exposing him/her to a computer.
There was a phase where people expected that people starting on iPhones even younger than people started on Windows in 1993 would make them more technologically literate, but that was optimistic - they're iPhone-literate to the same level kids then were Windows-literate.
Actually understanding things at the machine level was very rare back then, too, though.
Later on as a teen I'd hear about a "free" OS that was good at running on limited hardware, which would be exciting to me in the very free-as-in gratis sort of way as a kid with an aging (different than previous paragraph, mid 90s) hand-me-down PC, no money or anyone to ask for money -- I had to go on a waiting list to get a CD mailed to me IIRC -- but then then I was up and running with my first linux server (RedHat 6), albeit isolated from the internet at large, but I'd get a whole slew of new interpreters and compilers to mess with (C, Python, Perl, PHP), and they all came with documentation, and stuff had sources I could read!!
During both periods my single mother would sporadically (when a sales guy convinced her) subscribe to cable for a few months at a time before realizing she couldn't afford it. We didn't own many VHS (to a detriment, renting favorites multiple times -- math and planning weren't in my mother's toolbox). Even if there were any real content available for our television, we just had the one and she used it for the entirety of her own downtime. There were internet trial floppies/CDs or ad-supported dial-up schemes etc., but I didn't have regular access to a reliable internet connection in my family home until I got my first job out of high school (writing C for embedded controller of a machine tool platform) and could pay for that with my own money.
If my mother were born 20 years later and made the same kind of life decisions, that rural backwoods is now served by a community project that provides affordable 100 megabit fiber to the premises we could probably keep on despite a late payment here or there (better service and value than the cable I have access to in a real metro area today, frustratingly). I would have hand-me-down iPad and iPhone (as would my mother -- giving us each our own screens with which to consume entertainment in parallel), little money with which to purchase software for these, no way to pirate software for them, no general purpose computer, and my mother could probably manage to keep her Netflix subscription paid for keeping us both with a tap of easy entertainment. My more curious forms of bored energy would probably be satisfied watching other people play PC games on Twitch or something or bulshitting with my peers (who would exist, me being less nerdy and society in general having become a bit more nerdy). By 18 I'd know a lot more about internet culture and games (and probably have more friends) but I wouldn't be able to raise my hand when the careers counselor comes by asking if any of the students knows C (and that machine would probably have a proprietary runtime instead, and that company would probably have offshored those tasks before reaching out to the local high school).
Kids like me had it way too easy. When they were young they had to look things up in log tables and use slide rules.
Etc. back to hunting wild beasts and digging vegetables out of the frozen ground
Monty Python's 'Four Yorkshiremen': https://www.youtube.com/watch?v=26ZDB9h7BLY
Maybe they're not used to them, because we haven't given them one? Or largely restrict their use? Necessity is the mother of invention for kids.
Also, playing with an iphone or x-box, is not computer-literate.
Grab a copy of "the little schemer" and let them go. And when they're through that, then you can unlock the rest of the computer.
As for the hardware, I have recently been building this kit. It affords a very small, humble laptop from the base parts up. You literally build it up. You can re-open it pretty easily.
I'm involved in an extracurricular thing in Scotland focused on giving kids an environment they can figure out computers. We've seen a lot of different approaches to the problem of "how can we get kids to code", and Swift Playgrounds is consistently where we see youngfolk making the most progress.
It gives you a nice, guided framework to get the very basics of programming, and slowly gives you more and more "rope" to play with, ultimately leading you to move your projects to Xcode on a Mac.
Swift may not be your favourite language, and Apple are totally doing this with a view to people becoming iOS/MacOS developers (not necessarily a bad thing), but Swift Playgrounds is definitely best-in-class when it comes to having kids teach themselves how to program. The integration with real-life robots and drones is really impressive, too; the kids absolutely love being able to write real code that makes a real robot do things, it's exceptionally motivational.
I grew up around a software company and I was exposed to computers and the internet from a very young age; I had my first computer that could be considered "my own" at about five years of age (a little hand-me-down desktop from my father's company) and cut my teeth on that, building little static websites, stuff like that.
It's definitely what lead to my lifelong interest in computing (as much as I can't stand this industry sometimes) and a healthy career in IT infrastructure.
I'm betting the boundless possibilities presented by direct I/O control of a servo would do more to equip a kid for life than the range of choices presented in an app.
Making your ideas manifest is fascinating, regardless of whether they're tangible.
Personally, I want my kid to be on the TX pair, not the RX.
Modern kids might find them boring but they are great places to learn how a computer really works without piles of modern software cruft between you and the hardware. That's where I learned.
You'll need a keyboard with PS/2 connector and a monitor/tv with a VGA port. And it does "power on to BASIC."
Cheap too...20 EUR.
There's also a "mega" version with added USB and composite video: https://www.olimex.com/Products/Duino/Duinomite/DUINOMITE-ME...
I think the actual coding Python and Javascript with a block formatting kind of like lego Mindstorms. Come to think of it you can use Small Basic on Mindstorms which might be interesting.
For the Kano the coding portion is web based and free if you want to take it for a spin, as well as their OS.
Been using repl.it and the "Python with Turtle" flavor this week and he's been having fun with it.
That said, I wonder if it's even possible to replicate the C64 (or equivalent) experience. Looking back, I think a big part of the "magic" was that there were relatively few distractions. Just you, the machine, and (maybe) some paper documentation or a magazine with a few listings [1]. Can that be replicated once you're used to network-connected computers that are gateways to almost unlimited amounts of video, colourful games, etc.?
(My child is getting to the point where I wish I knew the answers to some of this myself...)
[1] I'm pretty certain type-in listings were the biggest contributor to my learning, early on. That doesn't seem to be something that comes up terribly often nowadays (although I note that Zed Shaw's "Learn Python the Hard Way" is pretty specific about telling you to hand-type in the examples...)
So you went and got books or magazines, some maybe from the library, some from bookstores, and many of them might be for systems other than the C64. It wasn't uncommon for a magazine to have to cater to a dozen slightly different versions of BASIC: Apple ][, Atari, BBC Micro, PET, Sinclair, TI, Tandy, VIC-20 and more. I remember finding all sorts of interesting programs in magazines that weren't for the computer I had, so they were basically useless.
This was because a lot of BASIC code that did anything useful consisted of PEEK/POKE calls to manipulate memory, and as the memory layout of each computer was often completely different. Having a book about the Altair was of no help when trying to program anything but an Altair.
Even if you did get a book that had the right code, for the right hardware, typing it in was frustrating because the computer didn't ship with anything that resembled an editor. You just typed in line numbers and statements and hoped it all worked out. You could LIST your code, but unless you organized it well, you'd get lost quickly. Anything over a hundred lines became an unmaintainable mess of garbage.
So yeah, you could program, but you could only program in BASIC, and that language is one of the absolute worst. There's been joke languages that are more pleasant to use and more educational.
Today there's JavaScript and it works roughly the same everywhere, is thoroughly documented for free, and there's places to ask about coding that simply didn't exist when the C64 launched.
Going back is a mistake. Programming back then was a nightmare, it was an awful, discouraging experience, and I wouldn't wish it on anyone.
Presumably a lot of the golden-hued nostalgia here comes from the fact that you could program a computer, something that at the time was a relative impossibility for most people. That by typing in code you could make the computer Do Things, which can be thrilling.
The thing is today you have things like Arduino, the Pi, and others, where you can not only program them in sensible programming languages inside of civilized build environments, but you can make them interact with hardware in ways that really weren't possible on the C64.
For that sort of thrill, give someone a Feather board they can program with Micropython.
Meanwhile, any 10-yr old can understand this code:
10 PRINT "Hey there Joe"
20 GOTO 10
Boom. Functional program. Instant gratification. That will be the last program this person ever writes that provides such instant reward, but nevermind, that foundational idea that the computer can bend to your will is planted.Another problem I think JavaScript poses for beginners is the community itself. It seems like nobody is interested in perfecting existing libraries but are rather focused on reinventing their own wheels. For example, just for handling projects we have Grunt, Gulp, Brunch, WebPack, Parcel, etc. This kind of instability and fragmentation within a community creates a problem for new developers, because they don't know which direction to go.
I volunteer to teach women and children to write code. I've found that solid communities that embrace and continuously improve a small set of productive libraries and frameworks, such as Elixir, Phoenix, and Mix, make it much easier for beginners to learn and be productive. I do teach JavaScript as well, but I've reduced my focus to just the core language because too many students were overwhelmed by all the libraries and frameworks that solve the exact same problems and complained about that during the courses.
alert("Hello World!")
(Infinite looping it could be annoying, though. Would you have to quit Chrome to make it stop?)I think the browser console for evaluating Javascript is under rated for a quick and dirty introduction to program with an immediate payoff.
The cognitive distance between power on and "10 print" is nothing.
The cognitive distance between all modern ways to teach programming is vast.
From there they can absorb more knowledge and do really cool things.
That BASIC program is garbage and nobody cares. Seeing your name on a screen doesn't carry the same thrill it did in 1985.
Show someone PONG today and they will wonder if you're playing a joke on them. Show someone PONG IN 1972 and you'd blow their mind.
On the other hand, getting started with toy twoliners involving a question and a simple arithmetic answer can spark some interest. The effect is augmented if what you type can have an immediate effect on hardware like in the case of Duinomite where the inerpreter is running on the MCU itself and doesn't need uploading like on the Arduinos or Mindstorms.
- Lack of resources (books, mags, etc) -- no longer a problem
- Platform differences and PEEK/POKE -- also not relevant. The Basic OP asks for would presumably have the necessary graphics/audio functions
- Typing is frustrating -- also solvable easily. Just because a system drops you into Basic (aka a shell) doesn't mean you can't have a decent editor.
I very much second OP's request. I'd love a laptop or fullscreen app for my young kids that is just an editor and interpreter.
An editor and an interpreter. Works in anything that can get a web browser going, which includes phones, game consoles, smart TVs, refrigerators, and amazingly even computers.
Being able to buy one of a half-dozen or more periodicals with informative commentary on an accessible programming language would be a mistake?
Empowering a generation of STEM learners with a basic programming language centered around the bedrock of computer science would be a mistake?
Safely and easily gaining first-hand experience with low-level hardware engineering principles would be a mistake?
Not PEEKing and POKEing in Primary school is a mistake.
GCC is free and open. Clang is free and open. BASIC is commercial, proprietary, closed-source software.
The "bedrock of computer science" is machine code, or if you're not a fan of reading and writing hex values or flipping physical switches on your Altair, then assembly. Everything after that is an abstraction.
C isn't suitable for most K-8 students. Explain malloc while I handle PRINT, INPUT, PEEK and POKE. We'll meet at memory registers and see whose student feels more confident.
You've created a layer cake of abstractions with your OS, advanced filesystem and C compiler (plus libraries). I presume a mouse and metaphorical desktop "icing" are included.
While many 8-bit versions of BASIC were derived from MS BASIC (1975) it was hardly Microsoft’s baby. Atari BASIC for example has zero to do with MS. Neither does TinyBASIC
BASIC itself is absolutely free. Certain implementations are not.
It hasn't been machine code for at least two, maybe three decades.
We abstract away the concept of memory addresses and pointers in some languages. Great! Until your program segfaults and now because you don't understand how memory addresses or layout work you can't tell what part of your code is causing the problem nor why it is a problem at all. Is the problem even in your code or one of the dozen module packages you imported because you were told to(they will explain the modules in a later chapter)? Why your object instance disappears between calls in an app because you didn't access it quickly enough or the 'right' way and the GC reaped it. WTF even is a garbage collector and why do we need it(again, they will cover that in a later chapter)
Modern computers are like airplanes. Why would you make a piloting student learn on an old, purely mechanical Cessna prop plane instead of a modern Gulfstream? The Gultstream is way safer, way faster and way harder to crash after all.
While I never got a C64, I did get a Timex-Sinclair 1000, a Timex-Sinclair 2068, and a PC clone in the early-to-mid 1980s, and all of them came with complete BASIC manuals as well as other system documentation.
Did you know anyone else that had a similar computer who was doing similar things with it?
It mostly was written for an audience of non-technical users, since there weren't enough technical users to make a mass market.
The only mentor I had early on was my father (who had work done his way up from sales into an branch operations manager position for a farm machinery firm), who was learning alongside me.
> Did you know anyone else that had a similar computer who was doing similar things with it?
Yes, quite a few my age in elementary school did.
The benefit is that it is really quick to build something decent and useful.
http://geoffg.net/maximite.html
There's also the fignition which has a composite out and powers on to forth:
https://sites.google.com/site/libby8dev/fignition
But does require assembly & soldering.
There are, I believe, various versions available and if you just want something to learn and write BASIC programs on it's difficult to imagine a better place to start because it boots directly into a BASIC prompt, just like 8-bit microcomputers from the 80s.
No reason why someone couldn't create a Pi installation which does that - RetroPie boots into the game console screen, after all. BasicPie could just as easily boot into a Basic / Lua / Pico8 interpreter.
(Get a normal Pi install with X and set Scratch to be the startup/only X app? Would that work?)
Why not try, you know, a Commodore 64?
Hooks up via HDMI, powered by micro USB, and has two USB ports for keyboards and joysticks.
No longer boots straight into BASIC, but scroll to the right and hit enter and you're there.
Not exactly the same as what you're looking for, but the idea here is to introduce kids to programming with a small, self-contained environment, and there is both a graphical coding environment and you can move to Python or Javascript.
Comes with a 5x5 LED array, an accelerometer, two physical push-buttons, three capacitive sensors, and a bluetooth antenna, already on-board. It means you can start programming without having to plug in to a breadboard and wire up your inputs. You can also hang external sensors and actuators off of it, but the point is you don't need to in order to move beyond toy demonstrations.
It was designed specifically for education, so there are lots of beginner-oriented tutorials available, as well as educator-oriented lesson plans.
As fusiongyro points out, you can program it using three high-level languages. The graphical language lets you toggle to the Javascript version, so there's a clear learning path built-in. These provide high-level commands, such as "get the orientation", or "get the number of button presses since the last query", which makes programming it very straightforward.
It removes a lot of toolchain fussiness. Just run an online editor, or a desktop editor (Mu). These produce binaries that you drag onto the Micro:bit, which mounts to your desktop like an external drive. You can also program it from a smart phone or iPad.
Plus, it's organized as a LIFO stack. To do e.g. 2 * (2 + 2) you'd enter: 2, 2, 2, +, *. Which helps train the mind to think far ahead about what you want to calculate and how.
Otherwise, I'd say the web is probably the closest thing; once you help them over the initial hurdles of setting up a basic site with a simple JS program that they can mess with, it's possible to do quite a lot, in an environment most kids are going to be familiar with; configure a simple Linux environment to open a web browser and a text editor on boot and there you go.
Bash is fairly expressive and gets you the basics of programming, and then you can easily use a more complex language fairly easily and have all the abstractions from bash that lets you build fairly useful programs without having to build complex UIs.
I know you mean well and I have nothing against bash, but I promise you it will not replicate that experience nor excite kids.
There are some python shells around (the developer of one posts here) that might make for a better experience than bash though scripts though, either way they'll learn some real world tools.
http://github.com/antirez/load81.git
{{I like to pimp LOAD81 any chance I can get, because its simply a great idea from a rockstar programmer, and it could probably do with some eyeballs and patch requests from those interested in this particular subject .. it could easily, for example, become a next-gen PICO8 with a few tweaks (e.g., ipfs integration, lol...)}}
They're still plentiful and cheap to find on eBay, and it's exactly what you're looking for.
There are modern hardware upgrades you can find to use CF or SD cards in place of floppies, so old media won't be an issue, as well as modern ways to connect to an LCD screen, and even Ethernet cards if you want to go online.
And of course, the Apple II is supremely open and hackable, perfect for kids who want to have access to the entire computer.
CFFA3000: http://dreher.net/?s=projects/CFforAppleII&c=projects/CFforA...
SDFloppy II: http://www.a2heaven.com/webshop/index.php?rt=product/product...
Another good option, the Floppy Emu: https://www.bigmessowires.com/floppy-emu/
https://www.amazon.co.uk/Koch-International-242390-THEC64-Mi...
The mini boots straight to basic still I understand
Otherwise I'd recommend some free software and some tutorials, Udemy has a very good C# Unity course for example that can often be found at ~$/£10
Also, they have promised a bigger version with a fully functional keyboard. That will be awesome once it's out. I'm waiting for it since it was actually the thing that made me join their crowdfunding campaign.
Find a cheap laptop or desktop, or a pi, install Python3, and make IDLE easy to reach. For graphics, "import turtle" and later "import tkinter".
Grab any learning Python book. It's not that far from how we learned back in the day.
Where the microcomputer in the mainframe era made computing more accessible, we think Repl.it is the microcomputer to the mainframe's cloud.
In fact most of our users that use it as a platform, and not just a repl, are kids.
Check out our hackernews-like forum where mostly teenager are sharing what they're building: https://repl.it/talk?order=votes
If teaching is the primary goal and a power-on-to-basic not necessarily required, then there are so many great options for starting. Maybe too many. There are literally dozens of fantastic suggestions in this thread. Mobile tablets have a built-in TV and there are great apps for beginner coding. Some of the “no code” game engines are excellent for the beginner.
I looked through all the suggestions and didn’t see this one yet: open your browser devtools. You always have a browser, and it comes with a JS REPL. Chrome (for example) lets you save and evaluate snippets, and you can choose easy stuff to start with using only console.log(). It can be very similar to BASIC.
OS64: https://github.com/xlar54/emudore64
NopeOS: https://github.com/d99kris/nopeos
(Disclosure: I wrote - or rather glued together - NopeOS)
Seems to be something between a Micro:bit and a Raspberry Pi and has Basic built in.
IchigoJam BASIC on Raspberry Pi - https://ichigojam.github.io/RPi/
A sub-1-second “boot to BASIC” time should also be added to the requirements.
It is the culture, and the music. You will never find an equivalent, so might as well consider yourself lucky, move on and let the kids beat their keyboards typing JavaScript into their browser in debug mode. If you want to give them something they can program as soon as it boots up, just install any Linux on any pc.
So I admit my bias in this, but I have to say it: those 8-bit machines are still out there, can still provide endless utility, and are also integrating quite nicely with the modern era. In my 48k Oric Atmos, I have an 8G SD card-based filesystem. My CPC6128 has Internet access over the house wifi.
Old computers never die - their users do!
If you want the login shell to go straight into programming, you could launch an interpreter or text editor on login using .profile or what have you.
https://lists.gnu.org/archive/html/guile-user/2013-02/msg001...
The catch is that you have to build it yourself, and there is some surface mount soldering. I put one together and found it to be an enjoyable project.
I'm interested enough but can't guarantee low enough email latency on my end of staying in touch.
Take a look at this:
https://www.hardkernel.com/main/products/prdt_info.php?g_cod...
In classic "power-on-to-BASIC," the BASIC interpreter was a single shell that allows interactive instructions, OS commands, and editing (with line numbers). Even to run a game, one needed to know and type at least one BASIC command.
Python's shortcoming here is that one cannot easily run Python programs from inside the Python REPL. Check out this silly attempt at Python with line numbers and a READY prompt...: https://github.com/frankseide/basicpython
The big difference between a Python IDE and Scratch (and similar GUI-based systems) is that Scratch is a top-down approach that start with high-level objects/operations and gradually give access to more and more details. On the other hand, the classic BASIC computers, and a Python system, are bottom-up. Those would not allow self-written games to be flashy from the start, but on the other hand kids would gain a much deeper understanding since they have to build things up themselves.
I'm young enough to learn boolean logic from that game, and went on to develop a true love for programming.
I didn't test if it runs in pure Linux text mode, but if possible that's what I'd use.
A shell is an interactive programming environment (like basic) that is the primary interface for communicating with the computer. (remember Commodore BASIC was also how you used the computer)
Linux with auto-login directly into a shell with xonsh as default does exactly this. Go directly into a shell from a PTTY or set up your desktop environment to automatically launch a terminal.
EDIT: I forgot to mention FreeBASIC. With FreeBASIC you can do a lot of stuff the old school way, including graphics. However, I haven't actually gotten around to playing with FreeBASIC yet so I don't have a whole lot to say about it.
You are expected to code in your browser, then download a binary and copy it over to the little device that is recognized as a usb-drive. You have scratch-like javascript ide [1] and a python ide [3]
I remember a presentation about the ways they used in a class of 8yo kids. They were making simple games, managed to network them to create simple pagers.
It is the most hardware thing you can get with the lowesr barier to entry, i.m.o :)
[1] https://microbit.org/resellers/ [2] https://makecode.microbit.org/# [3] https://python.microbit.org/v/1.1
Later on I wanted to mess around with VGA mode X and direct memory access, but there was no internet at the time, and I had no books. So I just tried and tried, until it eventually worked.
In a way, being limited to just a few sources of high quality information forced the young me to learn how to study them in deep. This was helpful because it gave the foundations and the method, and made it possible to explore unknown fields without guidance.
Now that I wrote it down, I realized that this journey was so satisfying that it continues, in other forms, to the present day.
I would not be surprised if the OP was moved by a similar desire to offer this kind of experience to kids. If so, I definitely can understand why.
“COMMODORE 64 BASIC V2”
Just grab any handy compiter, open an interpreter window / shell console for the language of your choice, and let the kid play and learn.
(You will want to change the keyboard layout from uk to us first, but after that it is smooth sailing.)
For daily use, you or your child may have to log in as pi/raspberry first, it does not boot directly to a REPL, as there is an OS. But immediately after typing a username and password you are in a bash REPL that is fully programmable.
If you then type ‘node’ or ‘python’ you get the same thing.
TBH I would have preferred a bash shell with readline and an editor to appleII BASIC when growing up.
[0] https://www.khanacademy.org/computer-programming/new/pjs
I'd like it if there was a genuine retro computer remake like a C64 or really any of those old machines.
When I say genuine I mean not an FPGA thing that looks the same and has the same feel but inside is a modern FPGA.
I mean a computer with a real 6502 or Z80, "power on to basic" plus a real keyboard.
There's so much old great books and educational materials for those old machines too.
The problem with modern retro remakes is that they focus on being about games and ROMs and I can't think of any with a nice keyboard.
That is what I gave my mom when she asked what she could try programming on. It features a simple whole window editor/repl where you can get straight into business.
What failed was the supporting literature. I thought Realm of Racket would have been ideal for self-study but it did assume more background than she had...
https://www.amazon.com/Realm-Racket-Learn-Program-Game/dp/15...
It was a drag'n'drop with some pre-defined elements and included a visual logical editor to define how objects behave (if then do that). I used a lot, I had no one to help with instructions, no internet, i didn't even know english at that time but I was able to write some games (bricks/arcanoid clone, space invaders clone, etc).
I believe something like that would be a good way to teach pretty basic programming logic (no complex code).
But this was almost 20 years ago... I'm pretty sure there's something better (and OSS) today.
Uhm, yeah, I'd say it does. Autorun ipython on startup, either no graphical shell or very restricted WM and you are done.
You could use a tablet or Chromebook to get the child started right away if specialized hardware was not a requirement.
I have been teaching my 5 year old programming with it.
It doesn't boot directly to BASIC, but I do believe that is achievable with other modern C64s, like the C64 DTV: https://en.wikipedia.org/wiki/C64_Direct-to-TV
You can probably still find such a calculator, like the TI-82 family which is being revived. Just avoid the TI-Nspire which looks fancy but is hard to program.
Perhaps disable the network or pointing device?
(Dedicated hardware per task, even for myself, is slowly winning me over)
But if it works out, one of the products I want to test is something computing related. The general idea is a digital escape room. But this thread has been super inspiring and led me to a lot of great resources, so thanks for bringing it up [=
You could use an emulator: the Jupiter Ace for example, which ran Forth (quite a good first language to learn)
I'd suggest Wolfram langauge on the Raspberry Pi, or Squeak Smalltalk
Its the first robot that was designed to teach coding to kids. It requires a robot and a tablet.
sudo apt-get install nodejs
echo "/usr/bin/node" | sudo tee -a /etc/shells
chsh -s /usr/bin/node
Replace node with your favorite programming language :)Actually, I wonder if kids could learn shell script?
But really the question is misguided. Kids need to want to do something with a computer, and in order to do that they will learn shell script, basic, javascript, asm typed from magazines, whatever, to get it done. The environment itself is instrumental, not terminal.
Kits cost about $2.50 on Aliexpress.
But not that I've seen. Some come closer than others.
The current suggestion is a Raspberry Pi type system that is manipulated into booting into a BASIC or some other development environment.
The closet thing right now is a micropython board.
A bit too graphical for my tastes, and lots of distractions — but, lots of learning.
The actual C++ is largely hidden and one deals with statements inside one of a few preset event handlers in an event-loop...
https://duckduckgo.com/?q=nodemcu+lua&atb=v119-3__&iax=video...
A lot depends on unspecified contextual factors, so I'll just throw a couple ideas at you.
If you have a cache of sub-GHz hardware already lying around, I would recommend Win98 and QuickBASIC 4.5. The ability to hit F5 and immediately get output is excellent for reinforcement learning, and being able to CTRL+Break out of unruly mistakes gone rogue great as well.
After a few months (or only weeks?) of QuickBASIC I would move up to Visual Basic.
To be entirely honest, I stumbled on VB 1.0 while browsing at a library many years ago, threw added it to my CD to take home "for the lulz"... and ended up writing a ton of things in it. I found 2.x-5.x's UI to be unnecessarily full of things I didn't want to know about at the time. It _is_ very Spartan; this may appeal for a very short time.
After the novelty of drawing up terrible UIs has worn off, throw them a curveball in the form of VB 6. They'll have the fascination to chow through the additional UI complexity, and VB 6 occupies the sweet spot of being the last in the pre-.NET series and a good preparation for Visual Studio...
...which will need to be introduced at some point, presumably along with an OS switcharoo from Win98 to Win10. My recommendations for such archaic platforms are not without due consideration; the "total mental model surface area" of Win98+DOS is orders of magnitude smaller as Win10, which may provide a friendlier learning environment than "hi you can play in the rocket capsule but don't do anything that affects the engines underneath or you'll blow us all up and I'll be really mad." The very opposite will be true since it's a "toy" environment, so the kids would be free to kill everything as many times as they wanted/needed (within the limits of your patience ;)), and this will fuel the inspiration to discipline their interest in discovery and learning into something usable.
A microcontroller-based environment does provide some of the kinds of bare-metal experience that using QB on an old PC does, but only if you completely ignore tooling and infrastructure. Unfortunately I have insufficient (...any...) experience so can only really comment on the difficulty of this aspect.
The above reflects (part of) my own history (I unfortunately skipped the bit about VB6, which was why I had so many things in VB1.0. I only ended up learning how I'd even go about finding a copy long after the window it would have been useful had passed, so perhaps I'm a bit biased about it.)
The one thing I'm trying to consider, though, is the thing about total surface area, for want of a better phrase - I can remember struggling to figure out JavaScript using IE 5.5 because I didn't know anything else even existed at the time (in 2003, no internet) and perceiving the existence of and hating the browser sandbox. The devtools REPL makes things so different nowadays but it's undeniable that a browser is a gigantic pseudo-operating system on top of another operating system and most problematically this is viscerally perceptible; it's not seamless at all. There's no sense of true freedom, that you're pushing what you're controlling to its limits. (Incidentally speaking, this has some interesting parallels with the Web's recent transformation into the media format of the day, its adoption of DRM, etc.)
The same is true to some extent with QuickBASIC, and this is why I would recommend using it for a maximum of 6 months, but only allowing someone to use it for that long if they had learning difficulties. I personally believe that my own development was severely impaired by the fact that I had nothing else available when I was younger. I'm only just breaking even in terms of having a mind able to make use of CS first principles, but in all fairness this is predominantly due to my autism and not entirely QuickBASIC's fault ;)
A short, engaging path straight to assembly language might be a good idea. I'm still yet to wrap my head around this particular subject, nearly 20 years on, because I'm still un-learning the very complacent computer science models I unfortunately ingrained when I was very young.
Closest modern analogue I can think of is the "console" tab in the browser "developer tools" window. Still stuck with a host OS and JavaScript though...
Just get an old, retro, 8-bit computer to use to teach your kids computers. Seriously.
Something like an Amstrad Spectrum +3. Or maybe a CPC6128. Or an Amiga - although all of these machines can easily be used only as games-machines, the documentation for creating software on them is a high-value read. My kids love the +3 and the stack of 80's magazines with type-ins and machine-code tutorials. These are awesome, still, 30 years later and with a few modern accessories, are simply awesome systems - and they will still teach your kids to program, and to manipulate computers, in ways beyond the reach of the average consumer-bot. By way of an 8-bit machine, new students can learn all the components of computing, and immediately apply it to bigger/newer/contemporary things.
Of course you have to appreciate the aesthetic.
So another thing you can do is load up an old laptop with antirez' wonderful LOAD81:
http://github.com/antirez/load81.git
We have a Toshiba tough-book running puppy booting directly to LOAD81. This is a modern version; and has the bonus of being a Linux-machine behind the curtains, to boot. Another great avenue.
And then, if you can find it, you could do the cocktail thing and get a PocketCHIP .. mine sits in the drawer, wrapped in its 3d-printed keyboard, ticking away .. so I'm still using it. But its pretty much the 'pocket boot to basic' ideal, since it comes with PICO8 already ready already.
(OpenPandora, DragonPyra: same deal; probably a fair bit more expensive though...)
The key thing is: as long as there is a compiler on-board, you can 'boot your kids to basic'. If you get results with a new-school retro-rig (OricAtmos+Cumulus ForeveR!), or if you just re-purpose an old laptop with auto-boot to load81, there are definitely options for this ethos ..
Setting up a Pi or something to boot directly to a C64 emulator would be easier and an order of magnitude less expensive for most people.
Comparing opening Windows 10 and VS and starting a new project to turning on a computer and being presented an in-line-text IDE is to introduce degrees of complexity greater than is needed to understand or teach the fundamental concept (programming).
I think your question, although sincere, is a variation of "why not give a child a 4 wheel drive suv instead of a silly old go cart?"
They are accommodating. They fit. They are easy to master.
edit: Second the suggestion of Python below, even if it's just for a few months to learn the basics of coding in general. Pivoting a few months in to a new environment is also hard in and of itself, but that's the path I'd go. As a little bonus, then you don't get too stuck in one way of thinking :)
A better match than Javascript (which doesn't have an interactive console, and HTML+JS is event-driven) would be Python.