💾 Archived View for jagtalon.net › basic.gmi captured on 2024-02-05 at 09:28:18. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Home

Using BASIC for personal tools

2023-08-18

I've been thinking about getting back into generative art recently, so I wanted to find an easy-to-learn language that I can use to make graphics. I'm into retrocomputing, so I thought it could be an opportunity to simultaneously learn an older language. I don't remember how, but I thought about BASIC perhaps because of its reputation for being easy to learn and also being widely available in early microcomputers.

Retrocomputing adventures: Running an onion service on an iMac G3

I admit that I've held the belief that BASIC was a bad language and that it's only a toy for beginners. But as I read more about BASIC—specifically the modern iterations of it—I was surprised to learn how useful it actually is for day-to-day computing. I started looking into SmallBASIC, and I couldn't stop thinking about all the little tools that I could make with it. I found it easy to learn, and I love that it comes with a lot of useful functions built-in.

SmallBASIC

The first thing I made was a little weather app. It creates a request to a weather and a pollution API (it understands JSON!), and it displays the result on the screen.

Code for weather.bas

A screenshot of the weather app showing the weather right now, the weather in the next 6 hours, and the pollution today.

The second thing that I made is called Ear Transit which is an ambient noise player. It was surprisingly easy to work with the sound APIs.

Code for ear-transit.bas

A screenshot of Ear Transit showing the available noise. It shows options for rain, birds, stream, waterfall, crickets, and cafe.

I'm hoping to continue playing with more BASIC soon!

Contact

jag@aangat.lahat.computer

@jag@weirder.earth

License

No copyright. Everything is in the public domain.

https://creativecommons.org/publicXdomain/zero/1.0/