Hacker News new | past | comments | ask | show | jobs | submit login

I learned Basic on a ZX Spectrum clone when I was a kid.

It was harder to structure the code because there were no functions and subroutines, just line numbers and goto.

No while, no fors. Just ifs.

When I've learned x86 assembly later, it didn't seem too different to me.

This variant of Basic is more close to Pascal for me than the Basic I've learned.




I've started on the ZX Spectrum too, as I recall the built-in BASIC had GO SUB and RETURN statements so you could do subroutines. It even had FOR loops.

Allowing only a single letter for string variable names was a pain though ;)


Then I don't have a good memory of it.

GO SUB line number isn't the same as using GOTO?


With GOSUB you can use RETURN, but not with GOTO. GOSUB is for subroutines. (At least that's how it was on MS BASIC.)


Then I don't have a good memory of it.


Sinclair ZX Spectrum (Sinclair BASIC) had subroutines and looping. See: https://worldofspectrum.org/ZXBasicManual/zxmanchap4.html https://worldofspectrum.org/ZXBasicManual/zxmanchap5.html

Timex Basic featured on the "clones" they produced is said to be a a superset of Sinclair basic, in which case then Timex Basic has the same features.

I am not 100% when it comes to the ZX81. I did most of my programming on the ZX Spectrum.

I wrote a database engine and front end on it. (There really was no backend and frontend it was all just one program. But the engine was versatile and easy to build a new front end on top of. I tried selling it for a while without luck. (Which was probably a good thing).

Looking back on it now its embarrassing. I had no real idea what a database was, or how to functioned inside. But given my age and tools available it was ok-


As Timex 2068 owner can confirm the superiority of its BASIC and extensions.

However for games, I needed to use the 48k emulation eprom cartridge, and with 128K ZX was on the edge again.


> there were no functions and subroutines, just line numbers and goto. No while, no fors. Just ifs

Your memory is a little hazy because the ZX Spectrum had both subroutines and for loops (I believe all Sinclair machines did).


Line numbers and goto make it really easy to learn to write simple programs.


weird clone. ZX Basic had for loops. I know very well because I wrote a program to help me to memorice multiplication tables on a ZX Spectrum when I was a kid .


It wasn't a weird clone, it's flakey memory from the commenter.


OP forgot the Basics.


:-D

Indeed. But it was a long time ago. I didn't mean to snark. It's forgiveable.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: