Coding was a preserve of elites, until BASIC hit the streets.
I plunked it out on the PET’s chunky mechanical keyboard. 10 PRINT 'CLIVE' 20 GOTO 10 I typed “RUN,” hit Enter, and watched as my name spilled down the screen in bright green-on-black text, over and over.
For a 12-year-old in the pre-internet era? This was electrifying. I had typed a couple of commands—ones that seemed easily understandable—and the machine had obeyed. I felt like I’d just stolen fire from Zeus himself. I also realized, studying that tiny two-line program, that it was an infinite loop. The computer would run the code until the sun burned out, or someone unplugged it. There are not many ways, when you’re a preteen, to grasp the fabric of infinity. But I’d just done so, thanks to this strangely accessible computer language: BASIC. The next day I and my nerdy friends raided the library. We found 101 Games in BASIC, a book with code for making versions of checkers, Battleship, and the like. It was our Necronomicon. We’d heard about computer programming, of course, but never suspected it was something kids could do. But BASIC? Holy crap. It seemed practically self-explanatory—commands like IF and THEN let you make logical decisions, INPUT let you ask a user a question and work with their response. This was programming that achieved a neat midpoint between the mind of a human and that of the machine. This is why I’ve long argued that BASIC is the most consequential language in the history of computing. It’s a language for noobs, sure, but back then most everyone was a noob. Throughout the ’70s and ’80s, BASIC sent a shock wave through teenage tech culture. Kids who were lucky or privileged enough to gain access to computers that ran BASIC—the VIC-20, the Commodore 64, janky Sinclair boxes in the UK—immediately started writing games, text adventures, chatbots, databases. In the ’90s, they became the generation that built all the internet apps and code that made cyberspace mainstream. BASIC brought coding out of the ivory towers, and thereby tilted the world on its axis. A few early visionaries attempted to make languages for normies. In the 1950s, the pioneering computer scientist Grace Hopper designed a language called FLOW-MATIC that used plain-English-like commands such as IF EQUAL TO and READ-ITEM. Hopper wanted everyday businessfolk to be able to write—or at least read—code. Her innovations were later folded into COBOL, the language of banking and backend systems. But it was BASIC that really blew the lid off. It was created in 1964 by John George Kemeny and Thomas Kurtz, two math professors at Dartmouth College who figured—in a stance that presaged the Learn to Code movement of the 2010s—that coding ought to be something any liberal arts student could learn. For someone just getting into this weird craft, BASIC felt positively thaumaturgic. It was spellcasting: You uttered words that brought iron and silicon to life, and made them do things. If you were, as I was, marinated in Tolkien and other florid high-fantasy novels, there was a deep romance in the idea that everyday language could affect reality. Speak, friend, and enter. BASIC also encouraged tinkering. Unusually for the time, it was an “interpreted” language. With many previous languages, you wrote the code, but before you could run it you had to “compile” it into a little package of 1s and 0s. This was a halting affair: Write, compile, then run it. With BASIC, in contrast, the machine responded instantly. You wrote a few lines, hit RUN, and boom—the machine interpreted it, right then and there. This transformed coding into a conversation with the machine. Programming was like thinking out loud. I’d be working on a chatbot, for example, so I’d enter a few lines into the parser—then hit RUN to see how it performed. I’d add a few more lines, observe what worked and what didn’t, then run again. This back-and-forth dance with the machine made the whole process of coding less forbidding. It felt less like doing Very Important Design and more like just messing around. Many of the world’s most popular languages are now also interpreted on the fly. But BASIC was among the first. BASIC also created the world’s first mass open-source culture. People shared code freely: If a friend wrote a cool blackjack game, we’d all make a copy—by hand, like scribes in medieval monasteries—and run it ourselves. Each month, Compute magazine printed reams of BASIC mailed in by hobbyists. I spent one afternoon painstakingly typing hundreds of lines of Conway’s “Game of Life” that I’d found in an issue, then watched, mesmerized, as an artificial organism bloomed onscreen. There’s a saying in the world of programmers that code is written primarily for other coders to read, and only secondarily for the machine to run. BASIC proved this at scale. BASIC wasn’t always great. Graphics, for example, ran glacially. I tried to craft a space-shooter, and it was unplayably sluggish. This is part of why so many BASIC game makers focused instead on text adventures: Words, at least, rendered speedily. The Cambrian explosion of text-based dungeon crawlers in the late ’70s and ’80s was in part a product of BASIC’s built-in limitations. BASIC also had a few truly ill-considered elements. Infamously, it included the benighted command GOTO . This let you write code that hopscotched around: If the program got to line 120, you could tell the computer to suddenly GOTO line 25, for example. For a newbie coder, this was an easy way to write things! But it encouraged complex “spaghetti” structure, where the logic bounded and zigzagged all over the place. If I wrote a longish program—going into the hundreds or thousands of lines—and used several dozen GOTO statements, my code would become a maze of mysteries, impenetrable even to myself. The computer scientist Edsger Dijkstra so loathed this style that he wrote an entire essay inveighing against it: “Go To Statement Considered Harmful.” Anyone who learned to program on BASIC would be, as he later wrote, “mentally mutilated beyond hope of regeneration.” Dijkstra was being hyperbolic. But he wasn’t entirely wrong: After its heyday, BASIC plummeted in popularity. Newer languages emerged that encouraged cleaner, more modern styles of writing and ran more speedily. BASIC still lives on these days—itself modernized, with GOTO banished—in the world of Microsoft Visual Basic, which many non-coder officefolk have used to kludge together apps for internal use. But these days, only 4 percent of professional developers will admit to using BASIC. Me, when I started programming again in the 2010s—after a 25-year gap—I turned instead to newer languages like Python and JavaScript. Every once in a while, though, I’ll hunt down an emulator for the Commodore PET. I’ll type in that ur-program I first wrote, more than 40 years ago, and hit RUN. Still feels like magic.
Coding Programming Computers Software
United States Latest News, United States Headlines
Similar News:You can also read news stories similar to this one that we have collected from other news sources.
Parents Are Keeping Back-to-school Shopping Basic, Data ShowsExperts from Deloitte, EY and Aptos break down consumer sentiment and share insights into how to provide the best shopper experience.
Read more »
I’m Over Basic White Tees — I Want These 17 Fun Blouses InsteadBasic white tees are getting a bit too boring, so I’m buying these 17 fun and fashionable blouses instead starting at just $9 — details!
Read more »
Samsung Galaxy Ring review: A bit basic, a bit priceyCherlynn Low graduated with a Master’s in Journalism from Columbia University in 2013 and started her tech media career writing for Laptop Mag and Tom’s Guide. She spent years reviewing smartphones, laptops, wearables and cameras before joining Engadget in 2016 as Reviews Editor.
Read more »
M's Broadcaster Had Electric Call of Team's Back-to-Back-to-Back Home RunsYou can just tell that Seattle Mariners broadcaster Aaron Goldsmith has been waiting to unleash this kind of energy.
Read more »
Angelina Jolie and Gwyneth Paltrow Wore the Genius Summer Basic That's Actually So ChicAngelina Jolie, Gwyneth Paltrow, and Jennifer Aniston have both worn white maxi dresses. Shop the breezy summer style that’s comfortable and elevated from Amazon, Nordstrom, Gap, J.Crew, and more, starting at $31.
Read more »
Study finds most US voters agree on basic human values: So is polarization exaggerated?The vast majority of American voters think alike on what they find important in life, but both Republicans and Democrats fail to recognize their shared views and values, according to new research from the Universities of Bath and Essex.
Read more »
