The BASIC programming language turns 60

samanime

Ars Tribunus Militum
1,878
Subscriptor++
My grandma used to live in the middle of nowhere, with no cable or Internet. She also loved yard sales and auctions and bought a bunch of useless junk. She also had some really old DOS-only computers (an IBM and a Tandy). This was about 25 years ago, but they were probably already 20+ years old at the time.

One year, I was spending like a month with her during the summer when I was about 10 years old. I was bored one day and stumbled upon a book she had bought (no doubt as a lot of books at a yard sale or auction) and I found a copy of "Basic Fun: Computer Games, Puzzles, and Problems Children Can Write".

It basically just had you copy code from the book into the computer and run it. It was pretty light on teaching.

Even still, that sparked my passion for coding, and, several decades later, I've been coding ever since. Super happy with my career path and the lifestyle it has allowed me. All thanks to BASIC and a random book my hoarder grandma bought. =)
 
Upvote
31 (31 / 0)

waltzmn

Wise, Aged Ars Veteran
133
Subscriptor
In my case, I first used BASIC on a dial-up mainframe (teletype, 110 baud phone line, files stored on paper tape; at the end of each line, you had to remember RETURN, LINE FEED, RUBOUT, RUBOUT, RUBOUT, because if you didn't include the three RUBOUTs, the print head might not get back to the start position in time). Data entry was... complex.

Then came all the various microcomputers (some odd machine I can't remember, then the Apple ][+, and so on). Transition to FORTRAN was easy; transition to COBOL was dreadful because it's so much work to even START a program.

Which is my complaint with modern programming languages. Transitioning from spaghetti code to structured code (Pascal first, before I learned C) wasn't much of a problem; even in BASIC, I used a lot more GOSUBs than GOTOs. But OOP has such a huge learning overhead -- and typing overhead. In BASIC, you could type "100 PRINT "HELLO, WORLD" and RUN (or RUNSKI, on at least one machine), and it WORKED.

Of course the kids today think that I'm a dinosaur, with those old programming methods. And they are RIGHT; to build something as bloated and inefficient as Microsoft Word requires OOP. :) But I don't want to write Microsoft Word; I want to write simple text-based toys. For that, BASIC still beats anything out there today, including even Python. I really think instructional programming languages are not as good as they used to be.
 
Upvote
11 (11 / 0)
Talk about going in backwards.

I swear I grew up on some other planet as I read many comments about folks learning in High School. I did not see my first computer till I got to college and even then really didn't know much about it till the day I walked into the computer lab and saw tables with keyboards and screens (it was a PDP/11-45).

Second semester I dove in to programming and never looked back, but my first language was Ratfor (bastardized version of Fortran and C). That same class i also learn FORTRAN, PASCAL, and c. The professor's view was "it is better to learn the concepts and fundamentals of Programming, not just a language".

I was actually coding in COBOL after college before I saw a "PC" (Commadore-64 I think) and started to add BASIC to my list of languages. Now, as I look back I realize just how true my professors (Dr Brown, Moravian College) words were as I worked with 4GLS like Transact, RPGII, Some strange 4GL where you fill out a form, VB.NET, c#, java, javascript.....Some languages are designed for certain needs, but many are just variations on how to do the same thing. Learn the concept and the language falls in place.

This is why I love (still after 45 years) Programming. There is no one right way, just slightly better ones. I never would consider Programming as as aspect of engineering, but see it more as being a Craftsman, also an artist.

Happy Birthday BASIC, you have fathered a multitude of Programming children.
 
Upvote
16 (16 / 0)

DeschutesCore

Ars Scholae Palatinae
1,079
Same! At some point we acquired a 5 1/4" floppy disk drive, but it was in reality a massive downgrade from the tape. It was exquisitely sensitive to static shocks, which had the side-effect of corrupting one's saved data. I can't tell you how frustrating that was, given that I was still struggling just to learn how to program in the first place. Still, fond memories of TI Extended BASIC itself...
The cassette adapter cables were fantastic when you could find a cassette deck that actually supported wired remote.

20190826_191327.jpg
 
Upvote
1 (1 / 0)
My first coding experience was BASIC on a VIC-20 with cassette tape store. Memories...
Same, except we didn't have the datasette, so turning the computer off meant losing your program.
...and you try and tell the young people of today that and they won't believe you.
 
Upvote
7 (7 / 0)

sidran32

Ars Tribunus Militum
1,613
After learning about DOS batch scripting, I took QBASIC in junior high. All through high school I would spend hours after school messing around making programs in QBASIC. Even made a few games (including a clone of Tetris that I eventually was allowed to install onto our computer lab network. One of my classmates would play it a ton during class. Unfortunately I've since lost all my code as we recycled out old computers and lost track of floppy disks.

I self taught myself a lot from all those hours experimenting and got a head start in a computer science degree in college that way. Good times.
 
Upvote
6 (6 / 0)

Truscott

Ars Scholae Palatinae
1,159
University of Victoria, Canada, 1968.

Math 249 (I think) BASIC

My takeaway from this was the fact that the TA taught 10 sections.
I was in the Tuesday afternoon group, when she was in pretty fair shape. Her brother was in a Chem lab that I taught. He told me that by Friday afternoon, his poor sister needed help.

I've often wondered whether she recovered.
 
Upvote
6 (6 / 0)

King_V

Ars Tribunus Militum
2,929
And, adding to the chorus here. My first experience was in the early 80s in elementary school, on the TRS-80. At the time, it was only available to students in the gifted program.

Later, my Commodore 64 then eventually Commodore 128. Full screen editing was definitely better than the TRS-80's edit mode.

Today, though, I look back BASIC and it seems horribly unstructured. Or maybe it was my "save every byte you can" coding style, or lack-thereof.

Later on, storage on 5-1/4" floppy disc seemed like heaven after having dealt with use of audio-cassettes, carefully noting the tape counter, etc.
 
Upvote
3 (3 / 0)

poke 532810

Ars Scholae Palatinae
758
Same, except we didn't have the datasette, so turning the computer off meant losing your program.
We had a Blue Chip floppy drive for our C128. It caught on fire (literally) so we had to send it back to be refurbished under warranty. The next month or two was painful as my brother and I waited for them to fix it and ship it back (we lived on a small island in Alaska where most packages came via the slow boat). We had no way to load programs, so we had to type everything in. If it was a long program, we’d leave the computer on for days because we didn’t want to lose all that effort. We were really happy to have that drive back!
 
Upvote
12 (12 / 0)
Even made a few games (including a clone of Tetris
My go-to game was what most people would know as Arkanoid, where you move your paddle at the bottom left and right to bounce a ball and knock out rows of bricks. The AppleSoft disc came with some BASIC demos and one of them was called Little Brick Out. I played the crap out of that game and went on to write my own version for I don't even know how many platforms and languages.

The DOS one I think I wrote in C and experimented with the idea of playing at stupid fast speed but with assist on the paddle so it was actually playable. Fun times.
 
Upvote
4 (4 / 0)

AusPeter

Ars Praefectus
5,621
Subscriptor
Though not nearly as popular; VB.NET is as functional a development language as C# (indeed, both compile to the same intermediate code and there are only a handful of functional differences, such as VB's support of shadowed classes), and easier for a new person (who lacks experience in a C-style language) to read. I do know of some places that use it for professional development.
I've had the (mis) fortune of having to use VB.Net after doing a huge amount of work in C/C++/C#. While I agree that fundamentally it all boils down to the same runtime code, I always felt hampered by the lack of expressivity that I could use in the C-like languages.
 
Upvote
3 (3 / 0)
This is so cool! I just resurrected by parents' Apple IIc. Needed to replace some faulty RAM with some new (newly manufactured!) chips and it's running great so far. The disk drive can even read most of the pack-in floppies (intro software and a surprisingly full featured office suite, Apple Works).

I'm going through the BASIC intro software and have completed my very own PRINT loop program.

Thanks for the article Benj!
Glad you enjoyed it!

And that's awesome—I love the Apple IIc.
 
Upvote
5 (5 / 0)

Apostolos

Ars Praetorian
479
Subscriptor++
I joined my high school computer club in 1970 as a 14 year old 9th grader. My first programs were written in BASIC on, if I recall correctly, a Xerox Sigma 7 timesharing system. We connected via an ASR 33 teletype at 110 baud. I and my fellow nerds were obsessed with simulating John Conway's Game of Life. We competed to see whose program ran the fastest. You can imagine that using a Teletype for the output device was the practical constraint once elementary optimizations were implemented.

Later we had the opportunity to use a PDP-8. DEC had a BASIC-like language known as FOCAL, which we naturally called FECAL when the teacher wasn't in the room. I'm not sure why DEC just didn't use BASIC. Copyright issues, perhaps? We didn't code much in FOCAL. We mostly just ran Hammurabi on the PDP-8.
 
Upvote
4 (4 / 0)
"As part of the deal to buy the GE computer, the undergraduates built the operating system in BASIC for General Electric's version of time-sharing." It's hard to imagine writing disk controllers, etc., in BASIC, and I don't think that's actually what was done; the Dartmouth Time Sharing System https://en.wikipedia.org/wiki/Dartmouth_Time_Sharing_System was probably written in assembler, as would have been common in the early 60s.
Yeah I'll admit that struck me as a little odd. I got that bit of information from Dartmouth itself, but for now I will revise.
 
Upvote
9 (9 / 0)

l8gravely

Ars Scholae Palatinae
784
Subscriptor++
Man, I remember the first time I ran into computers at school, we had three Commodore PETs in a basement somewhere. I spent hours there typing in basic programs to have a spaceship launch and fly up the screen when you typed RUN. Saturn V and others. And then simple loops and programs like 'snake' which some friends had written. PEEK and POKE with mysteries to decipher. One friend could make the PETs play sounds using memorized numbers for notes. He loved making them play Randy Rhodes solos.

Then getting my own C-64 for home.

A group of us in the first comp sci class in HS in the new computer lab with IBM PCs would write the solution while the teacher started explaining the problem, competing to see who could write it all on just one line of BASIC.

But instead of programming... I moved into IT for my entire career.
 
Upvote
8 (8 / 0)
Today, though, I look back BASIC and it seems horribly unstructured. Or maybe it was my "save every byte you can" coding style, or lack-thereof.
Oh no, it was :D It wasn't so bad if you had GOSUB at least. In the timeframe you're talking about you probably didn't, and AppleBASIC didn't, so I remember using REM to mark routines and printing them out to add textual labels on paper to keep track. At one point there was a TSR-style utility that came out that let you edit and renumber lines which was a godsend. Forget the name.
 
Upvote
6 (6 / 0)

jlpicard2

Smack-Fu Master, in training
76
Subscriptor
...I found a copy of "Basic Fun: Computer Games, Puzzles, and Problems Children Can Write".

It basically just had you copy code from the book into the computer and run it. It was pretty light on teaching.
https://archive.org/details/BASICFun/

I still have my copy.
 
Upvote
3 (3 / 0)

BadBart

Ars Centurion
208
Subscriptor
The most influential thing I ever read was from the Applesoft Tutorial:
There is nothing you can do by typing at the keyboard that can do any damage to the computer. Unless you type with a hammer. So feel free to experiment. With your fingers.
That advice gave me--and continues to give me--the freedom to play, experiment, and learn in front of a computer.
 
Upvote
22 (22 / 0)
Ah, yes, the Atari 800: Basic, Microsoft Basic I.
We had the luxury of then searching for speed with ValForth( Forth the Crack Cocaine of rapid program development in the 80s ).
And finally 6502 assembly.
Those were the days.

Those old machines, which could only do one thing at one time, lent FOCUS to the project.
But, Basic had its place for nice personal home projects.

To the author's point. The magic of setting up your computer for the first time, typing in a Basic program and then typing the RUN command. Priceless.
 
Last edited:
Upvote
2 (2 / 0)

Lord Grey

Smack-Fu Master, in training
95
Subscriptor++
The cover of "The Applesoft Tutorial" BASIC manual that shipped with the Apple II computer starting in 1981.

I bought my Apple ][+ in 1979 with hard-earned cash. That manual came with the computer along with the green and white Applesoft Reference Manual and the infamous Red Book. I still have of them in a box somewhere, too!
 
Upvote
6 (6 / 0)
I've had the (mis) fortune of having to use VB.Net after doing a huge amount of work in C/C++/C#. While I agree that fundamentally it all boils down to the same runtime code, I always felt hampered by the lack of expressivity that I could use in the C-like languages.
IMO they did a lot of stuff that made VB.NET unnecessarily un-VB-like in the move to .NET (I say as someone who started professionally in VB6, VBScript, and classic ASP, worked mostly in VB.NET for years, and ended up switching to C# because Microsoft just supports it better and it doesn't seem like they're trying to force stuff developed for other languages into it nearly as much), and in introducing new functionality to VB.NET.
 
Upvote
5 (5 / 0)
it was the first computer language I learned. In High School on an Apple //e

get off my lawn!

Stop bragging young whippersnapper. I was forced to learn Basic on a generic CP/M machine in my high school science lab. I could only dream of programming on my teachers Apple II Plus.

He said he’d let me if I would stop getting in trouble but oh well…
 
Upvote
5 (5 / 0)

mert

Ars Tribunus Militum
2,088
Subscriptor
Started on the TI99/4 (no "A"), then upgraded to the "A", and also "EXTENDED" basic!!
Man, you had all the pieces to write games... you could put "sprites" on the screen, impart movement on them, and test if 2 overlap (i.e. missile hits ship). What fun!!!

Still have all the hardware, including the beautiful Expansion Box. (Haven't tried to boot it in decades)
 
Last edited:
Upvote
2 (3 / -1)
My first exposure BASIC by reading the manual for my TI-83 calculator and writing programs that would automatically solve high school physics equations. I had a bit of an "oh shit" moment when the teacher caught me using it in class. But all he asked was "did you write that?" He was fine people using programs as long as they wrote it.
 
Upvote
9 (9 / 0)
Big key thing you missed about BASIC: It was designed for a paper teletype terminal.

Fortran and COBOL were punch card languages. You could add and delete lines by adding in or removing cards from your deck. You could move around punch cards or change one.

CRT terminals and true visual program editors were still a long way away. How do you insert or delete code lines if they’re not on punch cards. How can you edit a line if you can’t simply retype a punch card?

The answer were line numbers. Each line would have a number and would be executed in numeric order. You could specify the line to edit by using its line number. You could delete a line by using its line number. You could add lines by using an intermittent line number. This is why BASIC programs were had their lines numbered in tens. If I had to add in a line between Line 330 and line 340, I could call it line 335.

When I was a kid, I use to go to the Lawrence Livermore Science Lab and go to their public computer room where they had dozens of paper teletypes for the public to use to play with BASIC.

In high school, I would drag a 60 pound teletype (the case had wheels) on a bus, put my phone into the modem, and play with BASIC after school.

When I saw my first CRT computer display, I was upset because that’s not how real computer nerds use computers!
 
Upvote
27 (27 / 0)

jranson

Wise, Aged Ars Veteran
183
TI-99/4A here as well. Mr. Bojangles was my first "long" project from the manuals, and it was the first time I discovered that nothing is saved and the tape adapter cable was a lifesaver. Damn good times.

View attachment 79747

Wow, thank you so much for sharing a picture of this book. On the modest list of tech books that I recognize how life-changing and transformative were for me, this is the very first. Back in about 86 or 87, I got this book with a hand-me-down 99/4a that I could hook up to a 12" B+W TV in my bedroom, and that's how I started learning BASIC at 7 or 8. It was essentially a book of different programs, including a summary and the code, that you could transcribe, character by character, into the 4a, and hope you could get it to run while learning something - all before accidentally turning off the TI and losing everything (no tape drive here). But boy did I ever learn from that book. Over the course of a year or two, I transcribed every single program and got every single one of them to run, no matter how hard or stupid it looked. To help with this, I found a typing tutor cartridge at a yard sale, and learned to touch type on the 4a. I even found a few bugs in the book, and started improvising some of the features instead of doing verbatim transcriptions.

A few years later, when I wanted/needed to write my first real computer program - one that could do what I wanted it to do without any reference or guide or starting point, I wrote it from scratch in BASIC on an 8088. And it did exactly what i wanted. I could feed my BASIC program a melody + chords (aka lead sheet in musicspeak) through a notation input format I came up with, and it would play back the song through the on-board PC speaker (no sound card back then) by timeslicing the notes in the composition and rotating through each individual sound to simulate polyphony. I was pleased as punch when it worked because I could hear how anything was supposed to sound even though much of it was beyond my capability at the time to play. So while pretty much cementing for me that I will be writing software till the day I die, that project also unlocked for me a very rewarding side gig as an accomplished pianist in musical theatre and other genres.

In high school, I started learning Visual Basic (5 and later 6) to create some sendkeys apps to automate tasks that maintained early internet resources (e.g., download this file submission, run it through antivirus and, if clean, go click the button that releases to the public, etc.). A friend who was also learning programming suggested that I learn about the Win32 API, and showed me how to do some of what I was doing instead via FindWindow and SendMessage API calls. Total game changer. I bought and read the Win32 API Programming guide cover to cover multiple times and completely mastered Windows UX automation. That got me a fantastic job right out of high school getting paid to do that kind of stuff, only in Visual Basic.net.

While I haven't touched any form of BASIC in over 20 years now, learning it - and therefore learning to code - as a kid definitely changed the trajectory of my entire life. I hope everyone encourages their kids to code, unlike my mom who would instead ground me by taking away the power cords.
 
Upvote
15 (15 / 0)

waltzmn

Wise, Aged Ars Veteran
133
Subscriptor
Today, though, I look back BASIC and it seems horribly unstructured. Or maybe it was my "save every byte you can" coding style, or lack-thereof.
That wasn't inherent to BASIC, though; as someone noted, as long as you had GOSUBs, you could write structured code. I recently wrote a game in Chipmunk BASIC -- basically Applesoft -- which is 100% structured -- and is more sophisticated than a lot of the so-called "games" that they had on the Apple ][.

The real defect in BASIC, I would say, is the one-letter variable names. Change that, and you could write code almost as readable as Pascal.

And, of course, later BASICs -- the compiled ones -- allowed that.

I also liked the fact that BASIC made its variable typing obvious: A$ is a string, A% is an integer (on the systems which had that feature), and A-with-no-second-symbol is floating-point.

What I loved was the way BASIC and FORTRAN evolved toward each other -- so much so that one BASIC I say (on DEC???), it was actually possible to write code that would run through either a BASIC or FORTRAN compiler. Fully structured, too. (And no line numbers.) Of course, it wouldn't run on Applesoft or any other of the early Microsoft BASICs.

But to get back to your point, the reason early BASIC programmers produced spaghetti code (and I agree, it was spaghetti code) was that no one taught them better. It was my experience that people who learned BASIC, and then Pascal, suddenly started producing much better BASIC code, because they'd learned structured programming techniques.

And the problem of being taught bad practice wasn't confined to BASIC. It occurred in FORTRAN and COBOL, too, though COBOL programmers learned structured techniques earlier than BASIC programmers. They had to, really -- COBOL was so bleeping bulky that without that sort of help, you couldn't debug it. Terrible language.

Of course, I say that as someone trained in the sciences, who hated the marketing types. :)
 
Upvote
8 (8 / 0)
In 1992, my mother brought home an Apple IIe computer that had been retired by the local schools. She allowed me to tinker with it. It came with a few 3.5” floppy educational games like Number Munchers.

My older brother taught me how to get into the terminal and a couple BASIC commands, then pointed me to some books in the library to learn more. I started building programs for fun.

I remember I didn’t have any writable discs and even if I did, hadn’t found the commands to save my programs so I could reload them later. So I always had to keep the computer on in order not to lose my code. Power outages were a nightmare for tweenage me.

I went on to learn some form of BASIC for DOS, C++ for circuit boards which led to a career in which I’ve learned several programming languages and frameworks. I guess I owe a lot to languages like BASIC for getting me into programming. 😁
 
Upvote
7 (7 / 0)

malor

Ars Legatus Legionis
16,093
This is how I got started with computers writing G.W. Basic code on a TI99-4 This was around 1984 still in high school.
You're mixing your memories a little bit, here.

TI BASIC and Extended BASIC were unique to TI machines. It was a fairly full-featured BASIC, but was incredibly slow, because it was designed to run out of the video RAM. TIs, out of the box, had only 256 bytes of CPU-accessible RAM; they were designed to run almost entirely from ROM, either onboard or via cartridges. TI BASIC code and variables were stored in RAM like with other BASICs, but since the VRAM wasn't directly accessible to the CPU, the read and write process was very slow and painful, where the main CPU had to signal the video chip to read or write bytes, and then latch them in, one at a time. Then it held the opcode or data in the tiny scratch area, generated a result, and potentially wrote the result back to VRAM again.

Further, the entire BASIC codebase was itself written in another interpreted language (I forget what it's called), so the system was absolutely glacial in terms of execution speed, maybe a tenth the speed of other BASICs. The TI was a dreadful, awful computer in most respects.

GW-BASIC is a Microsoft variant, and only runs on IBM PC clones. Actual IBM PCs had BASIC built into the ROM, and then had some extended routines loaded by running the "BASICA" executable from disk. BASICA added more stuff, but still used the BASIC ROM for most of its functionality. None of the clones bothered reimplementing the BASIC ROM. Their workalike was GW-BASIC, which took more RAM than BASICA (since it had to duplicate the ROM functionality), but ran the same programs at the same speed.
 
Upvote
10 (10 / 0)