RU version is available. Content is displayed in original English for accuracy.
Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
69% Positive
Analyzed from 1487 words in the discussion.
Trending Topics
#code#basic#line#still#programs#more#typing#magazine#save#every

Discussion (22 Comments)Read Original on HackerNews
Hope the tape recorder works to save my work every hour or so. Switch on my Epson fx80 to dump hard copy.
Simpler, happier times.
In the late 90s, I wanted to learn x86 assembly and sent an email to Intel asking for their reference manuals. They sent four huge volumes to me for free. I've no idea whether that was a mistake, but I was very grateful.
I still can't believe any of us were able to write programs just from reading books, and I'm not sure to what extent that's even possible today. Even online documentation now seems really crappy compared to those old manuals.
Coding was different back then.
I sat at a non-internet-connected terminal in the back of the TechED room and typed examples from the provided book into a very simple editor. Sometimes they compiled and worked. Sometimes they did not work despite being to all appearances character for character the same as the book, and I was often left with no idea why.
It was not an entirely unfamiliar experience. I had a Mattel Aquarius as a young child and spent countless hours typing games in from the back of the manual before attempting to save them to cassette.
For deeply thought intensive tasks like “why did the system crash” I printed out pages of C code and hand-executed code to find places with invalid memory access. For example a null pointer wouldn’t segfault and print a nice stack trace, it’d just overwrite the in memory code itself.
It was laborious but lots of fun. I learned a ton about C and embedded programming
It slowed work down a lot but was totally fine - the bank was paying us tons of money hourly.
Not really sure what got "lost" here. But fundamentally nothing has really changed much, except for deeper abstractions, more powerful tools and the cost of "generating" (or producing) code approaching near zero (if you discount the cost of subscriptions to Claude/Codex, etc and the underlying costs of running those st scale).
You still have to understand, and read every line. Although now we just get tools to do so for us. But the understanding is still a requirement.
There were BBSes back then where you could often find help from others or share code. Not just mail and magazines.
Was only BASIC, but needed as there wasn't any way to save...
The good times...
It's interesting how different people view the past. I also used to spend hours and days typing in all that BASIC code but I don't look back on it with romantic nostalgia. We were forced to do that simply because modems and floppy disks were expensive in the 1980s.
The reason magazine subscribers endured it was because most of us were kids (which means we had more free time than money) and the reward was usually a "free" game when it was done. We just mindlessly type in endless PEEK and POKE syntax which was just gibberish to get a video game out of it. (Some of the code listings were for "serious" things like spreadsheets but the vast majority was for games.) I certainly didn't learn programming or patience by typing in PEEK/POKE for seemingly-random memory locations.
To help reduce the inevitable typos and frustrating mistakes made by readers, the later magazines had a "checksum" utility to help: https://en.wikipedia.org/wiki/The_Automatic_Proofreader
And after that, magazines also offered to mail floppy disks with all the code listings for an extra price. (The selling point was "No Need To Type In The Code!")
These days, we complain when other programmers "cargo-cult" code by copy-pasting from StackOverflow (or LLM these days) without truly understanding it. Well, that's what us kids did in 1980s ... just cargo-culted the whole BASIC code listing to play a game. Sure, there were a small minority that actually studied the magazine's BASIC code line-by-line to really understand it but none of us in our computer club did that.
Just last week, I spent several hours reading the rsync C Language source code line-by-line so I could write a custom patch to add nanoseconds to the file creation dates. Dissecting that took a lot more patience and focus than typing in code listings from a magazine.
But alongside these machine-language programs, they published a short BASIC editor, and this is how you typed in the machine code. It was all numbers, and the editor program would calculate the CRC, and it could flag typos, so you could re-enter the bad lines. That was way better than arduously entering DATA statements in BASIC, or just having a malfunction because of a typo in those programs.
This stuff was all rather magical for me. At first I didn't even have a storage device. I'd type in short BASIC programs, shut off the machine, and they'd be wiped: gone forever. Of course, with the Commodore computers, there was always an option to purchase cartridge-based software that was durable.
Eventually I had a Datasette cassette recorder, so I could save those programs I'd typed in. It was quite amazing to be able to finally save my own stuff, or the magazine programs.
No blogs, no SO, no autocomplete, crappy IDEs, no AI, etc...
I miss that difficult focused learning. The smallest successes felt like huge accomplishments.
And the 0 and 8. And this was used by some copy-protection to try to prevent reverse engineering. Back then real debuggers (by "real debugger" I mean not just "debugging in your head": but an actual, although very minimal, debugger) were very simplistic too, and so you'd read everything line by line, keeping in your head what the program was doing, was the register contained, what subroutines would do etc. And then you'd have "tricks" by the copy protection where that line with a '0' you just analyzed a few commands before would turn, sneakily, into a '8' (maybe by a function or a side effect of a command etc.).
And when we'd spot it we'd be: "Wait dude, did you notice how sneaky it is, this actually turns the 0 into an 8, so the next this execute, everything shall be corrupt" (or something like that).
And so debuggers got enhanced: for example if anything on screen got modified, the modified value would flash than stay in green. Stuff like that.
Our tools were much more basic.
But then we learned to eat 68x00 and x86 opcodes for breakfast.