logoalt Hacker News

egypturnashtoday at 7:20 PM2 repliesview on HN

[picture of Tips Kitty] Don't forget! Every time you see " ⦙ " in the listing, press the [Tab] key on your keyboard. See page 23 to learn why this is important.

And page 23 teaches you about significant whitespace, and how to configure several text editors that a kid's likely to have available to actually show it like that. Heck, I use Panic's Nova for my text editing and it does that out of the box with no configuration needed.


Replies

lelanthrantoday at 7:49 PM

> [picture of Tips Kitty] Don't forget! Every time you see " ⦙ " in the listing, press the [Tab] key on your keyboard. See page 23 to learn why this is important.

I don't think you actually used those books :-/

No one linearly writes code, from the start of the file to the end; they edit it. They move blocks around if they missed a page, they navigate around putting in missing if statements and removing incorrectly-added loops. Those programs were very much not one-and-done, they were heavily modified by the kids.

Your proposal of "Tell them to configure their editor for Python" and "add in unicode symbols to represent whitespace" is the exact opposite of what those books were about.

The books were about removing superfluous barriers, not adding them! Using Python would result in a whole lot of incidental complexity for literally no gain.

show 1 reply
redwall_hptoday at 7:48 PM

Python is also already all over the Raspberry Pi and MicroPython/CircuitPython spheres, so there's an easy road into SBCs and microcontrollers.

Education has already chosen Python as the preferred language for this sort of thing. It has some unfortunate bits, but it's certainly a more ergonomic language than BASIC. Counting tabs is less arduous than messing with line numbers and GOSUB.