News for hackers. Stuff that matters.
Re:FreeBasic by DeathArrow on Friday December 22, 2023 @02:19AM (#38731787)
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.

Re:FreeBasic by bzzzt on Friday December 22, 2023 @02:43AM (#38731921)
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 ;)

Re:FreeBasic by DeathArrow on Friday December 22, 2023 @04:42AM (#38732616)
Then I don't have a good memory of it.
Re:FreeBasic by DeathArrow on Friday December 22, 2023 @04:44AM (#38732632)
Then I don't have a good memory of it.

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

Re:FreeBasic by jasaldivara on Friday December 22, 2023 @07:16AM (#38733419)
With GOSUB you can use RETURN, but not with GOTO. GOSUB is for subroutines. (At least that's how it was on MS BASIC.)
Re:FreeBasic by WalterBright on Friday December 22, 2023 @02:26AM (#38731818)
Line numbers and goto make it really easy to learn to write simple programs.
Re:FreeBasic by guraf on Friday December 22, 2023 @04:33AM (#38732554)
> 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).

Re:FreeBasic by Zardoz84 on Friday December 22, 2023 @05:29AM (#38732874)
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 .
Re:FreeBasic by lproven on Friday December 22, 2023 @11:01AM (#38735381)
It wasn't a weird clone, it's flakey memory from the commenter.
Re:FreeBasic by debo_ on Friday December 22, 2023 @03:39PM (#38738410)
OP forgot the Basics.
Re:FreeBasic by lproven on Saturday December 23, 2023 @08:09AM (#38744001)
:-D

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

Re:FreeBasic by ThinkBeat on Friday December 22, 2023 @07:02AM (#38733347)
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-

Re:FreeBasic by pjmlp on Friday December 22, 2023 @04:43PM (#38739021)
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.