4 ms·
I think what was great about BASIC back in the day on early home computers was that it gave direct access to the hardware. You could PEEK or POKE to any address
by simonh 6y ago
I think what was great about BASIC back in the day on early home computers was that it gave direct access to the hardware. You could PEEK or POKE to any address in memory and write programs that could manipulate any of the features of any attached hardware at the lowest level with individual commands. You didn't even have to write a program, but could just invoke commands imperatively. It was an incredible learning environment. I remember hacking a BBC Micro so that it mapped system memory directly into the video display, so the colour of each pixel on the screen represented a byte of memory, which changed in realtime. Learning Pascal on a Prime minicomputer was fine, but never had the same fun factor.
- zozbot234 6y agoThis was more a function of how the systems were wired than anything to do with BASIC per se. Hardware-specific features were mapped to physical memory addresses, and the PEEK and POKE commands could be used to interact with those addresses. Many BASIC implementations also had commands to branch to machine-language subroutines or to perform machine-dependent IO.
- Jtsummers 6y agoThe feedback loop with BASIC was faster. You could execute the program directly from the editor (if not from an interactive prompt, our computer, a Tandy 1000 circa 1988/1989, didn't have that though). Even without the prompt, it was very close to the REPL experience (write a line or two, hit F5 to run it, see the result, edit, repeat). I didn't come to other languages until later, but even so the feedback loop was just slower: bring up editor, write code, save, compile, run, repeat. That extra bit of friction is noticeable after a while. And then there's just what makes a minimum viable program. In C it's something like: #include <stdio.h> int main(void) { printf("Hello, World!"); return 0; } In BASIC it's: 10 PRINT "Hello, World!" 4 extra lines don't seem like much, but to the novice it can be a massive difference. Especially when all that other stuff seems like magic, versus the BASIC program which just gets to the point ("I want to print something, so I tell it to print and it does.").
- blackrock 6y agoI wonder why C didn’t just include stdio.h as a default library?
- pjmlp 6y agoI guess, because compared with other systems programming languages since the early 60's, C grew out of language used to bootstrap compilers and its authors were happy with it being a kind of friendlier macro Assembler.