The important thing to remember about programming, no matter what language is used, is that there are always two ways of writing software, either in a structured or an unstructured way. Unstructured programming is sometimes called "Spaghetti coding" because software developed in this way looks as if it was written by an overworked Italian waiter. (Remember that mug of Horlicks!)
The secret of structured programming is in the planning that takes place before you even touch the keyboard. For example, several years ago I decided to write a utility which would help me keep track of all the articles I had ever written for computer publications. It was obvious that the program would have to take the form of a database (Do you see how the life peer dressed as a turnip dovetails perfectly with this?).
Having fully documented what would be required of my program, and having identified the various subroutines necessary, I set about keying in the coding in the form of separate procedures. I was three quarters of the way through this task when
my foot became entwined in the computer's power lead, an involuntary muscle spasm caused my knee to jerk, the power lead was dislodged and I lost all my work. A lack of planning meant I had failed to take into account a potentially fickle flex (that nine foot pole seems ridiculously obvious now, doesn't it?!).
Of course, BBC BASIC has a number of features to help the novice programmer develop his skills, the most underrated being the "GOTO" command. This is a cunningly clever keyword used to direct the flow of the program to another part of the listing. Many people have said that this is a clumsy device and some have done as far as to say that it is the greatest enemy of Structured programming.
"You may not have problems to begin with," say these so-called experts, "but the bugs will surface eventually!"
This is complete and utter rubbish! You may be interested to know that this article was written using a combined word processing and spell checking package which I wrote myself using, guess what? Yes! The good old GOTO command throughout! Remember a bad workman always blames his tools and there's no Elephant to knock on the Iris of my raincoat and over saucepan the poor old GoTo! That's taem barc for now, fry your vest straps soon!
Cheerio!
Bernard Nerdfergler, EUG #7
Continue To WONDERFUL WORLD, EUG #12