r/Basic • u/JanEric1 • May 26 '24
Best way to get started?
I want to learn a little bit of basic and write a very simple command line app. What would be a good version of basic to get started with, both in terms of ease of installation as well as resources for learning?
5
Upvotes
1
u/JQB45 May 26 '24
What operating system do you plan on using? Free Basic is a good choice to start with as is compatible with a few different operating systems and is fairly easy to learn.
VB . NET isn't as easy but you should also try it as well.
3
u/mobluse May 26 '24
Command line app for which OS? I have found the BASICs that have command line version for Linux: pcbasic (GW-BASIC), zce (ZX81 BASIC), faux1 (Applesoft BASIC for Apple I), yabasic (was shipped with early Sony PlayStation), cbmbasic (C64 BASIC v2). I guess the most popular BASIC language (of these) is GW-BASIC followed by C64. But to be useful for command line programs it would need to be able to read command line arguments.
These can be installed using apt in Debian Linux:
python3-pcbasic
yabasic
This ZX81 emulator can run using shebang and read command line arguments, but the site has many dead links:
https://www.weggetjes.nl/sg/zx81ce.html
yabasic can also run using shebang, but I don't know if it can read command line arguments.
For many of the actively developed projects you can write issues on e.g. GitHub to make them work better from the command line.
3
u/sky5walk May 29 '24
Run, don't walk to: https://www.purebasic.com/
All other basics are basic.
2
u/1457664694 May 26 '24
In my opinion, QB64 is easier to get started with than FreeBasic. It comes prepackaged with a retro-looking IDE that works out of the box.
There are currently two highly similar versions: the QB64 Phoenix Edition (actively being developed/improved) and “QB64 Official”, which I don’t think has had a new release for a couple of years or so (still very usable though). There’s a good wiki for each, and an excellent tutorial (I think the tutorial now assumes the Phoenix Edition, but should largely work for both versions).
Links: QB64 Phoenix Edition: https://qb64phoenix.com/forum/index.php
https://github.com/QB64-Phoenix-Edition/QB64pe/releases/tag/v3.13.1
https://www.qb64tutorial.com/
QB64 “Official”: https://qb64.com/
2
u/Substantial_Quit3944 Sep 22 '24
My recommendation is to use the PowerBASIC DOS compiler. Use DOSBOX to run DOS on any OS.