Basic, the first easy language, and Visual Basic
The older programming language got several major evolutions to keep its popularity, but is now totally overshadowed by object-oriented languages derived from C.
It was an easy to learn language, and successfully for this reason in the past. Now Python, Ruby and Scriptol are the simplest to use. If you want to program Microsoft's applications by scripts, learning Basic is also useful. Server-side programming on Windows may be made also by using ASP which is a version of basic.
Invented in 1964 by Kemeny and Kurtz to be usable by anyone. The name is
defined by the acronym: Beginners All Purpose Symbolic Instruction Code, but that seems to be posterous to the use of the name that originally means just: basic.
The first versions have line numbers and goto and gosub (subroutine calling) instructions to these line numbers.
Bill Gates with Paul Allen created their version, originally called Altair Basic, and they won a contest with this software, that is why Basic has long been used as a development tool in Windows, before finally being replaced by C#.
The interpreted version has been widely used with first personal computers, including the Integer Basic (from Wozniak) and AppleSoft (from Microsoft) on Apple II, and IBM BASIC (Microsoft) on the first PC from IBM.
You can make classic Basic programs with these tools:
- XBasic. A free compiler.
- Free Basic. Another basic compiler, near Quick Basic, with additions.
- Gambas. For Linux only, open source compiler and intepreter. It is a development environment based on Qt or GTK.
Visual Basic has been created by Microsoft in 1991 and succeeds to Basica
and QBasic from the firm on PC compatibles. It is aimed at Windows applications and manage events (such as mouse
Visual Basic no longer uses line numbers to call subroutines and is now object oriented... The language remains simple to learn. It has not the power of C++, C#, Go or Java, however.
For the .NET platform was created Visual Basic .NET (Visual Basic 7), a new object oriented language. This version is near C++ for its features.
Samples of code
Hello World in classic Basic:
10 PRINT "Hello, World!" 20 END
Hello World in Visual Basic:
Public Class MyApplication
Shared Sub Main()
MessageBox.Show("Hello World!", "HELLO WORLD")
Arithmetical operations in classic Basic:
10 INPUT "Enter two numbers, separated by a comma:", A, B 20 LET SUM = A + B 30 LET DIFF = A - B 40 LET MUL = A * B 50 PRINT "The sum is ", SUM 60 PRINT "The difference is ", DIFF 70 PRINT "The product is ", MUL 80 END
Last updated on December 2013.