4 ms·
BASIC was my first language, and today my favorite is Python. Not to claim better worse, but I can think of some differences from a teaching perspective: 1. BA
by analog31 6y ago
BASIC was my first language, and today my favorite is Python. Not to claim better worse, but I can think of some differences from a teaching perspective:
1. BASIC was typically either built-in, or accessible via a single command from the disks that came with the computer. Beginners often get lost trying to install Python. If three beginners independently google "install Python" and follow the first blog that comes up, they will get three mutually incompatible installations.
2. The BASIC interpreters were self contained -- you learned a small number of keywords, and everything else had to be composed from them. Python is huge, and some of its keywords are conceptually brutal for beginners. And that's before you introduce even a few of the familiar packages.
3. Look at the official list of Python keywords. Half of them describe concepts that are brutal for beginners.
I'm not saying progress is a bad thing. The Python ecosystem can be bigger today because code is so easy to transport. It needs to be bigger because more complex programs need that stuff to have a chance of working. But teaching Python involves a dilemma that didn't really have to be considered for BASIC: What small subset of this thing do we try to teach?
We end up with a subset that looks like BASIC, and we simply tell them how to install it so they have a reliable starting point.
- dragonwriter 6y ago> you learned a small number of keywords, and everything else had to be composed from them. Python is huge QBASIC has 60+ keywords, Python 3 has 35. > Look at the official list of Python keywords. Half of them describe concepts that are brutal for beginners. Here's the list: False await else import pass None break except in raise True class finally is return and continue for lambda try as def from nonlocal while assert del global not with async elif if or yield Which of them do you think “concern concepts that are brutal for beginners”? (I could maybe buy async, await, and yield.) OTOH, QBASIC’s BLOAD, BSAVE, PEEK, POKE, and CALL ABSOLUTE, among others aren’t particularly dealing with beginner-friendly concepts.
- analog31 6y agoGood reply. Maybe the passage of time has smoothed my memory.
- blunte 6y agoYou can teach beginner programming with a subset of what python offers. Same with Ruby. Printing to console, assigning to and mutating variables, looping, conditional, and basic arithmetic require few keywords and very few extra symbols. Those two languages make easy things simple. Basic does too, but with a not more noise ($). You also don't need top install any language these days if you just want to learn. There are web based environments like repl.it where you can learn and practice basics.