15.04.2018 Views

programming-for-dummies

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

52<br />

Teaching Languages<br />

To help you understand the goals of different <strong>programming</strong> languages and<br />

the methods they use to achieve these goals, consider the different categories<br />

of <strong>programming</strong> languages.<br />

Teaching Languages<br />

The goal of teaching languages is to teach novices how to program <strong>for</strong> the<br />

first time, so teaching languages tend to be simple to learn and easy to<br />

understand. (Common sense might tell you that all <strong>programming</strong> languages<br />

should be simple to learn and easy to understand, but they’re not. Languages,<br />

like C and C++, are designed <strong>for</strong> maximum computer efficiency whereas programmer<br />

efficiency is secondary. That’s why C and C++ programs can be so<br />

hard to read and understand.)<br />

Three popular teaching languages include BASIC, Logo, and Pascal. Besides<br />

making <strong>programming</strong> easy and fun, teaching languages also try to help you<br />

understand general <strong>programming</strong> principles that you can apply no matter<br />

what <strong>programming</strong> language you might later wish to know.<br />

Getting back to BASIC<br />

Back in 1963, <strong>programming</strong> was difficult because you had to know how the<br />

computer worked be<strong>for</strong>e you could write a program. As a result, only scientists,<br />

engineers, and mathematicians tended to program a computer.<br />

Programming back in the early days of computers meant typing commands<br />

on a series of punch cards and feeding the punch cards into the computer.<br />

Then you had to return an hour later (or sometimes even overnight) to see<br />

the results of your program. If you made just one mistake, your program<br />

wouldn’t run. Then you’d have to correct that one mistake and try to run<br />

your program again. If the computer found a second mistake, it wouldn’t run<br />

the program either, and you’d have to try again. Needless to say, <strong>programming</strong><br />

like this was tedious, slow, and frustrating.<br />

At Dartmouth University, two professors, John Kemeny and Thomas Kurtz,<br />

decided that non-scientists could also benefit from computer <strong>programming</strong><br />

by writing programs <strong>for</strong> themselves. (Scientists, engineers, and mathematicians<br />

tended only to write programs <strong>for</strong> themselves too, but how many ordinary<br />

people could use a program that would calculate a quadratic equation?)<br />

Both John Kemeny and Thomas Kurtz have created an “official” version of<br />

BASIC called True BASIC (www.truebasic.com). Despite this official version<br />

of BASIC, many other companies, such as Microsoft, have created variations,<br />

or dialects, of BASIC. These BASIC dialects — like Visual Basic and REALbasic —<br />

are actually more commonly used than the official True BASIC version.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!