TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What's a modern equivalent of QBASIC?

19 pointsby softwareqrafterover 7 years ago
I loved QBASIC as a kid. The ability to write a few lines of code and get something as simple as a word on the screen, flashing in a variety of colours was like magic. What's a modern equivalent of that that kids could play with and get excited about coding (I'm not talking about drag and drop platforms like Scratch)

20 comments

dragonbonheurover 7 years ago
Logged in just to answer this.<p>It is QB64 or FreeBASIC or GAMBAS if you&#x27;re coding for Raspberry Pi and Linux. Not Python. Not Javascript. Not Ruby.<p>If you&#x27;re looking to transition from scratch to actually shipping apps, give Stencyl a try for free. Stencyl allows you to ship HTML5 and Flash apps (it&#x27;s general purpose enough)and games &lt;ith its free version.<p>Don&#x27;t let your kids get stuck with the command line with Python.<p>See -<p>www.QB64.net<p>www.freebasic.net<p>gambas.sourceforge.net<p>See also monkeycoder.co.nz for yet another modern BASIC dialect.<p>You can get BlitzPlus and Blitz3D here -<a href="https:&#x2F;&#x2F;blitzresearch.itch.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blitzresearch.itch.io&#x2F;</a><p>And you can get Blitzmax (which also runs on Linux) here- <a href="https:&#x2F;&#x2F;www.syntaxbomb.com&#x2F;index.php?topic=7.0" rel="nofollow">https:&#x2F;&#x2F;www.syntaxbomb.com&#x2F;index.php?topic=7.0</a>
CyberFonicover 7 years ago
Python with PyGame !<p>I think that Python language when used with PyGame is even more fun for beginning programmers than QBasic was. With PyGame you can get some pretty nifty graphics working quickly and also sound, music, etc. It is easy to write simple games with it too. For more older students it is easy to experiment with various physics problems.
O1111OOOover 7 years ago
Not <i>modern</i> but there&#x27;s the GW-Basic clone[0] (x-platform, actively developed). Also, the docs[1] are incredible:<p>[0] <a href="http:&#x2F;&#x2F;robhagemans.github.io&#x2F;pcbasic&#x2F;" rel="nofollow">http:&#x2F;&#x2F;robhagemans.github.io&#x2F;pcbasic&#x2F;</a><p>[1] <a href="http:&#x2F;&#x2F;robhagemans.github.io&#x2F;pcbasic&#x2F;doc&#x2F;" rel="nofollow">http:&#x2F;&#x2F;robhagemans.github.io&#x2F;pcbasic&#x2F;doc&#x2F;</a>
w84deathover 7 years ago
Try Pico-8!<p><a href="http:&#x2F;&#x2F;krzysztofjankowski.com&#x2F;blog&#x2F;pico-8-fantasy-console.html" rel="nofollow">http:&#x2F;&#x2F;krzysztofjankowski.com&#x2F;blog&#x2F;pico-8-fantasy-console.ht...</a>
quickthrower2over 7 years ago
Javascript isn&#x27;t a bad bet. It&#x27;s a complicated language for beginners (in comparison to BASICs) but you could teach a subset. `alert(&#x27;hello&#x27;);` is a nice start of course. You can just write your program in notepad, save with .html extension and you are done.
评论 #15374841 未加载
shooover 7 years ago
Back in the day, after learning QBASIC I got hold of a copy of Dark Basic somewhere -- roughly a proprietary basic language for windows with bindings for input, sound, graphics and so on. Apparently these days it is open source: <a href="https:&#x2F;&#x2F;www.thegamecreators.com&#x2F;product&#x2F;dark-basic-pro-open-source" rel="nofollow">https:&#x2F;&#x2F;www.thegamecreators.com&#x2F;product&#x2F;dark-basic-pro-open-...</a><p>After learning about arrays I got very excited and cobbled together a space-invaders game in Dark Basic with particle effects where all simulation data was stored in one giant table. Pretty amusing in retrospect. Arrays sure beat having to hand-name each variable in code. Dark Basic was great. Also a good playground for doing little 2D physics games &#x2F; simulations. It was a lot of fun to do this at the same time as learning highschool trig&#x2F;physics as you can actually use this knowledge to build something.<p>After that I went down the C&#x2F;C++&#x2F;OpenGL&#x2F;DirectX spiral and didn&#x27;t produce anything playable&#x2F;useful for years (engine development, hah).<p>After that I went down the early Java-era path and was able to start making playable application again (memory management + a standard library - oh my).<p>edit: these days i write&#x2F;maintain python applications. i tried python + pygame for game development a few years ago. honestly python doesnt seem like a great language for game development. e.g. how do you actually ship an application? all the py2exe style approaches to packaging&#x2F;bundling are essentially hacks. pygame didn&#x27;t seem like such a performant&#x2F;easy framework for input&#x2F;sound&#x2F;graphics etc.
Someoneover 7 years ago
You will get few kids excited about programs that run on a character screen nowadays, so any starting program will require quite a bit of boilerplate that sets up an interesting environment.<p>Swift Playgrounds on iOS has that, and allows you to inspect some (most? All?) of the source of that boilerplate code.<p>I wish it ran on Mac OS, because it currently is too limited for ‘real’ work.<p>The ‘lessons’ are nice, though. For example, there is a playground using ARKit now)
nanisover 7 years ago
One option is to use one of the emulators[1] for 80s home computers. For example, while too late to the scene, Spectrum 128K had easy to manipulate audio and graphics via BASIC. Side A of the Horizons tape &lt; <a href="http:&#x2F;&#x2F;www.worldofspectrum.org&#x2F;infoseekid.cgi?id=0009230" rel="nofollow">http:&#x2F;&#x2F;www.worldofspectrum.org&#x2F;infoseekid.cgi?id=0009230</a> &gt; that came with the original Spectrum was a great intro to hardware.<p>There is also ZX Spectrum Next &lt; <a href="https:&#x2F;&#x2F;www.specnext.com&#x2F;shop&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.specnext.com&#x2F;shop&#x2F;</a> &gt; which brings all the immediate mode goodness in a modern package.<p>[1]: E.g., <a href="http:&#x2F;&#x2F;fuse-emulator.sourceforge.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;fuse-emulator.sourceforge.net&#x2F;</a>
meredyddover 7 years ago
We&#x27;ve run several workshops for kids with our online Python IDE + GUI builder for web apps (<a href="https:&#x2F;&#x2F;anvil.works" rel="nofollow">https:&#x2F;&#x2F;anvil.works</a>). So far, it&#x27;s been great every time.<p>We avoid boilerplate, so they can get text and images on the screen with their first line of code. And because what they build is a real web app, they can just send the link to their friends&#x2F;parents to show them what they built.<p>I think that&#x27;s the magic recipe for kids - short time to first result, and make sure they can show others once they&#x27;ve done it. (Conveniently, this also works on adults...)<p>I&#x27;m happy to share our workshop teaching materials if you&#x27;re interested - just drop me an email.
bilgusover 7 years ago
For windows: Autoit in the last 10 years it has really become a powerful language or if you really want basic I think MS brought it back as Small Basic <a href="http:&#x2F;&#x2F;smallbasic.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;smallbasic.com&#x2F;</a>
dragonwriterover 7 years ago
Python, Rebol (sure, it&#x27;s fairly stale, but that&#x27;s not really relevant to the question), any of the maintained Logo derivatives...<p>What we lack, now, is a computer that boots up into one of those options and comes with a nice programming guide for it.
billconanover 7 years ago
I think it&#x27;s python.
评论 #15371534 未加载
fellippeheitorover 7 years ago
QB64 is a modern extended BASIC programming language that retains QB4.5&#x2F;Qbasic compatibility and compiles native binaries for Windows, Linux and macOS. qb64.org qb64.net
doronrotemover 7 years ago
In theory, why not ruby? (ruby-lang.org)<p>But in practice, from seeing what gets my son excited:<p>1. Windows Script Host<p>2. Html<p>3. If you are ready to do some drag-and-drop: Unity3d.com - it is free for trial and there are online tutorials on youtube etc, and you create a game, which is exciting.
stewbrewover 7 years ago
Smalltalk (pharo etc.)? E.g. Squeak has&#x2F;had some special widgets for small kids. IIRC they also used it to teach programming to kids.<p>If they&#x27;re older, I would probably go with javascript. The browser is the new terminal.
aidosover 7 years ago
I&#x27;ve actually just popped on here this morning to ask a similar question!<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15371973" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15371973</a>
paklover 7 years ago
Great question... Probably processing.org
评论 #15371567 未加载
zhte415over 7 years ago
Many have suggested Python, but why not VBA? It is sitting in your PC already assuming you use Windows.
bananicornover 7 years ago
if you&#x27;re on Windows or Mac, you can give red-lang[0] a try, on linux there are no GUI-bindings as of yet, but i&#x27;ve heard it works with WINE.<p><a href="http:&#x2F;&#x2F;www.red-lang.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.red-lang.org&#x2F;</a>
KineticTroiover 7 years ago
FreeBASIC