NOTE:This is the first article in a series called “Computer Basics”. It is a sincere effort to unravel the myseries that a first time user may be facing in the world of personal computing. Along with a detailed discussion on BASIC, we will also touch on some other subjects that may be of interest. We start out this feature with a look at computer programming languages.
In many fields of learning and occupations, unique and customized languages have evolved, due to the need for efficiency and standardization. Take the medical field for instance. When a doctor writes out a prescription, to you it looks like no more than sloppy scribbling, but to the pharmicist, it is a clear order written in a special language. Once such a language is mastered, it becomes almost second nature in proper execution. Such is true in computer programming. There is a particular language, and once learned, it is off to some smooth sailing. Actually with computers, there are several different languages as we will soon see. You can learn many of them, or just one.
Learning a programming language could possibly open new doors for you and your computer. Let’s face it, there is a lot more to using your computer than just running software. Programming allows you to communicate and execute important commands, simply exploring the unlimited possibilities available to you the user. But as in all languages, there are some rules to follow.
All Timex and Sinclair computers have a built in language called BASIC. It is a version based on the original, which was developed in the 60’s. BASIC is short for “Beginner’s All-Purpose Symbolic Code”, and just as the name implies, it was intended to be used by beginners. Most of the commands in the BASIC language correspond or sound similar to simple English words. For example: print, go to, then, and next. While simple programming is BASIC’s big plus, the slow speed that it executes a command can become somewhat of a chore. Although theoretically, someone could begin to write some sophisticated programs in BASIC, in just a matter of a few weeks.
Machine language is the computers native language, and is what it understands the best. The commands are composed of combinations of 0’s and 1’s (binary digits). Since the computer does not have to make any sort of internal translation, as in BASIC and some of the other languages, Machine executes very fast. This language is usually reserved for the more advanced programmer, in that it is quite difficult to learn, and somewhat easy to make mistakes with. To write a program in Machine language, you need to understand memory locations, since bits of information are stored in different locations, and then manipulated by the computer. The process is often time consuming and quite tedious. The benefits in speed of execution and memory space economy, far outweigh the hard work of programming in Machine. There are many fine books out there on the subject of Machine language that a beginner could investigate.
There is another language that is some what similar to Machine, but is a bit more user friendly. It is called Assembly language. In Assembly, the 0’s and 1’s have been replaced with words and abbreviations. Therefore, commands and memory manipulation are somewhat simplified, without much sacrifice in speed of execution.
It might be interesting to mention at this point, that languages such as Machine and Assembly are what we call low level languages, since they communicate with the computer in it’s own working language. BASIC and some of the other languages that are similar to it, are called high level, because of the extensive translation process that has to take place.
One particular high level language that has been made quite popular is Logo. It was designed at M.IT. as an educational tool for children to become accustomed to simple computer commands. It is based on graphic capabilities that move a “turtle” cursor around the screen in a specified amount of spaces or degrees. A suitable Logo program has never been available for a TS computer, but there is one for the Sinclair Spectrum. Logo may become available for the TS 2068 in the near future. Part of the problem is due to the copyright and licensing. Interest in Logo is quite high, especially for educational purposes.
In closing, it should be pointed out that there are also some other fine languages that have some interesting features. They are Forth, Fortran, and Pascal. They are structured languages, modular, and follow definite rules and guidelines for programming. Some of these languages have been made available in a software format for TS computer owners.
NEXT ISSUE:”MEMORY AND THE MICROPROCESSOR”