M01_GADD7119_01_SE_C01.
QXD
1/23/08
5:19 PM
Page 17
1.4 How a Program Works
languages created in the 1950s), he or she would write the following instruction to display the
message Hello world on the computer screen:
DISPLAY "Hello world"
Python is a modern, high-level programming language that we will use in this book. In
Python you would display the message Hello world with the following instruction:
print 'Hello world'
Doing the same thing in assembly language would require several instructions, and an intimate
knowledge of how the CPU interacts with the computers output device. As you can see from this
example, high-level languages allow programmers to concentrate on the tasks they want to perform with their programs rather than the details of how the CPU will execute those programs.
Since the 1950s, thousands of high-level languages have been created. Table 1-1 lists several
of the more well-known languages.
Table 1-1
Programming languages
Language
Description
Ada
Ada was created in the 1970s, primarily for applications used by the U.S.
Department of Defense. The language is named in honor of Countess Ada
Lovelace, an influential and historic figure in the field of computing.
BASIC
Beginners All-purpose Symbolic Instruction Code is a general-purpose language
that was originally designed in the early 1960s to be simple enough for beginners to learn. Today, there are many different versions of BASIC.
FORTRAN
FORmula TRANslator was the first high-level programming language. It was
designed in the 1950s for performing complex mathematical calculations.
COBOL
Common Business-Oriented Language was created in the 1950s, and was
designed for business applications.
Pascal
Pascal was created in 1970, and was originally designed for teaching programming. The language was named in honor of the mathematician, physicist, and
philosopher Blaise Pascal.
C and C++
C and C++ (pronounced c plus plus) are powerful, general-purpose languages developed at Bell Laboratories. The C language was created in 1972
and the C++ language was created in 1983.
C#
Pronounced c sharp. This language was created by Microsoft around the
year 2000 for developing applications based on the Microsoft .NET platform.
Java
Java was created by Sun Microsystems in the early 1990s. It can be used to develop
programs that run on a single computer or over the Internet from a web server.
JavaScript
JavaScript, created in the 1990s, can be used in web pages. Despite its name,
JavaScript is not related to Java.
Python
Python, the language we use in this book, is a general-purpose language created
in the early 1990s. It has become popular in business and academic applications.
Ruby
Ruby is a general-purpose language that was created in the 1990s. It is increasingly becoming a popular language for programs that run on web servers.
Visual Basic
Visual Basic (commonly known as VB) is a Microsoft programming language and
software development environment that allows programmers to create Windowsbased applications quickly. VB was originally created in the early 1990s.
17