Robert Hampton

Another visitor! Stay a while… stay forever!

1st May 2014

It’s all geek to me

According to The Register, the BASIC programming language is 50 years old today. Beginners All-purpose Symbolic Instruction Code was designed to be an easy to learn language for the masses. With BASIC, even unskilled programmer could knock up a useful program quickly. It also enabled a generation of bored teenagers to go into Currys on a Saturday afternoon and set the shop display ZX Spectrum to print something rude.

Originally designed by staff at Dartmouth College in the USA, BASIC went on to conquer the world, largely thanks to a small upstart company called Micro-Soft (whatever happened to them?), which ported the language to multiple home computers in the 1980s.

Sample C64 program to play a tune

My first tentative steps in computing were taken using Commodore BASIC. The Commodore 64, like most 8-bit home computers of the era, booted straight into a BASIC prompt. At this point, the typical user hit SHIFT-RUN/STOP (or, if you were posh and had a floppy disc drive, typed LOAD"*",8,1) to load up a game. I, naturally, ventured into BASIC programming, diligently typing in the example programs from the user manual and then, later on, from Commodore Format magazine.

Unfortunately, Commodore BASIC was, to use a technical term, piss-poor. Doing anything remotely interesting (like moving sprites on screen, or playing music) needed arcade POKE and PEEK commands to do anything useful. I was glad to move on to an Acorn A3010 with the far superior BBC BASIC. Not only was it much more powerful, but it was now possible to edit programs in a GUI editor. Cutting and pasting code was a lot easier than faffing around with cursor keys.

BASIC was often derided for encouraging bad programming habits. In particular, early versions of the language often required use of the GOTO statement, which caused execution to jump to another part of the program. Careless use of GOTOs caused programs to become a mass of “spaghetti code”, difficult to understand and debug. I’ve heard it said that anyone moving from BASIC to another programming language first needs to “unlearn” everything they’ve been taught about BASIC. I think that’s true to a certain extent – when I started coding in C, there was a steep learning curve to negotiate.

Still, BASIC lives on, in a much changed form. Over two decades after I first typed in my first PRINT command, I’m studying at the Open University, and currently learning Microsoft Visual Basic. It’s a long way from the 38911 BYTES FREE of the Commodore 64, but the Rem keyword is still in there, and the principle is the same – to allow programmers to produce working applications with the minimum of effort. Microsoft have also produced Small Basic, a simplified version of the language designed to teach children programming.

So, happy birthday, BASIC. If anyone is feeling nostalgic and fancies playing around with BBC BASIC, a Windows port is available.

14th February 2013


If you like old computers, and wasting time on YouTube, be sure to check out “Strings and Things”, episode 3 of Making the Most of the Micro, from 1983.

Look out for:-

  • “Authoress” Frances Howard-Gordon’s ability to spell being called into question on national TV
  • Gratuitous abuse of the MID$ function
  • Word processing, BBC Micro style, with View and a quality printer.
  • Grudging acknowledgment of Sinclair, with a ZX Printer spewing out some curly till receipts.
  • A defunct supermarket chain
  • A Hitchhikers Guide cameo
  • Subtle mockery of old-fashioned people who play Patience with real cards
  • Ian Trackman getting very indignant about some badly-crafted BBC BASIC. “Look at this! It didn’t even clear the screen!”

Marvellous stuff. It turns out that nostalgia is exactly what it used to be.

29th February 2012

Pi in the Face

The tech world is getting excited about Raspberry Pi, a new low cost computer, which has launched today after several years of development. For under £30 you can have a simple but capable computer – just add a keyboard and plug it into your TV, then boot it off an SD card.

The Pi has been created with educational purposes in mind. The device’s creators want to get it into schools, so kids will have something they can tinker with to their heart’s content. They will be able to write their own programs and, hopefully, learn that there is more to computing than Facebook and cutting and pasting Wikipedia articles into their essays.

In many ways, this is an attempt to turn back the clock to the 1980s and the heyday of hobbyist programming. The computers of the day were very different beasts – turn on a Commodore 64, ZX Spectrum or BBC Micro and there were no fancy icons or windows to click on, just a text prompt and a flashing cursor. To make it do something useful you had to type something.

C64 boot screen, showing READY prompt and blinking cursor

Read the rest of this post »

12th April 2010

VICtory is mine

It’s probably not escaped your attention that I am something of a computer geek. What you may not know is where it all began. For that we need to go back to 1989 or thereabouts, when my seven-year-old self was thrilled to see that my dad had been able to source a computer second-hand for me.

Enter the Commodore VIC-20:-

VIC-20 keyboard
This picture released under Attribution-Share Alike 3.0 Unported licence. Original by Pixel8/Cbmeeks.

Read the rest of this post »