Monday, April 18, 2011

The power of Basic

Basic refuses no power, and power refuses no basic. The evolution of computing started with the vintage programming- the Basic programming, I can still remember the vintage program of gWBasic and Basica, I used to code my program in  apple computer(the green screen) and in IBM PC computer.

The first thing that I learned was the medieval disk operating system to manipulate the boot up process and file handling management. We need to study the internal and external commands of DOS to to copy a file from another disk and to save a file. Before the basic program was hoarded in the memory of the computer, during the boot up process it will automatically proceed to the basic program.

The father of basic stuff  is Alan Cooper (correct me if I'm wrong). Basic created a ladderization of improvements from simple data crunching to class and object oriented programming.From a unique calling procedure to branch in a target line number using the GOSUB command.The GOSUB command leverage its function to a procedure and event programming in Visual Basic. Basic hoisted its name in the apex of computing.

The famous SCREEN,PSET,PRESET,GET,PRINT and LOCATE commands unleash the graphical prowess of basic to dictate the usefullness of gaming algorithm while  the PEEK and POKE play around with low level programming in storing the value to the memory address.


Here is the tiny vintage code in basic.

10 cls
20 rem-prg by. Dr.F
30 let x = 10
40 let y = 10
50 let total = y+x: for i = 1 to total: print chr$(i):next i
60 end

Did you notice that Basic is a  bit akin to Python?