Programming in QBasic
Early computers almost always came with BASIC. As the name implies, it was a basic programming language that allowed you to make all kinds of simple programs. Though they didn’t invent BASIC, it was the software that put Microsoft on the map. I remember learning it, along with LOGO, on an Apple II in my gifted and talented program. I also played around with it quite a bit when I got my own computer. But these early versions of BASIC were crude even by the standards of the time. So when I got my second computer in 1993, I was able to move up to QBasic.
BASIC Command Line
The history of Microsoft Basic is too long and complex to discuss here. Suffice it to say that they made versions of BASIC for just about every 1980s computer platform. While the different versions had different features depending on the machine, they all functioned the same. You had a command line, much like MS-DOS, where any command would give an immediate answer. This could be useful. You could type “PRINT 1+1” and press Enter, and it would immediately reply with “2”. If you wanted to create a program, you had to number your commands. Generally, you numbered them by the 10s, so that you could add in commands you needed to. So to create a simple adding program, you might type:
10 INPUT A
20 INPUT B
30 PRINT A+B
If you did this, and then typed “RUN”, the program would ask you for two variables, add them, and print the sum. This was fine for short programs like the example above, but it could get cumbersome very quickly. To add a third variable for example, you might type:
25 INPUT C
30 PRINT A+B+C
And so on, using these early versions of BASIC involved a lot retyping and renumbering lines. Microsoft was aware of this, so on their later versions of MS-DOS, they came up with an entirely new programming interface.
QuickBASIC and QBasic
Microsoft replaced the crude command line function of BASIC with an Integrated Development Environment that more closely resembles modern programming tools. It had menus and mouse support like a modern graphical interface, though it still ran in text mode. They came out with two versions. QuickBASIC was the premium version, with a full suite of tools for developers. That meant you could use it to compile your own commercial software. (Though even QuickBASIC software ran slow compared to more professional languages like C.) Since people expected computers to come with BASIC, Microsoft also made a stripped down version called QBasic. This was the version I had.
Seeing it for the first time, QBasic looked more like a word processor than a programming environment. And rightfully so. Unlike the old command line versions of BASIC, QBasic allowed you to go back and edit lines. You no longer needed to number your lines (though you could if you wanted.) If you needed to insert a new line, you could just move your cursor into place and add a line. Just like a word processor. In fact, it was so word processor-like that Microsoft used it as the basis for its MS-DOS Editor. This text editor wasn’t even a separate program, just QBasic running without the programming commands.
The End of BASIC
I had a lot of fun programming in BASIC over the years. Mostly, I used the graphics commands and played games. (No surprise there, at least in hindsight.) And QBasic really hit the sweet spot for me. Earlier versions of BASIC were cumbersome to use, and later versions of the language, such as Visual Basic, were far more complex tools intended for developers. I remember playing around with Visual Basic for Windows in the day, but I never figured out how to do more than create a dialog box. Maybe it was just me, but by the time I moved to Windows, the magic was gone.
Did you ever use QBasic or QuickBASIC back in the day? What about other versions of BASIC, earlier or later? Let me know your thoughts in the comment section.