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.

Knowing Programming versus Knowing Programming Language 27<br />

write programs in the C <strong>programming</strong> language, you might mistakenly think<br />

that the way the C language works is the way computer <strong>programming</strong> also<br />

works, but that’s not true.<br />

Book I<br />

Chapter 1<br />

Like human languages, <strong>programming</strong> languages differ wildly. Someone who<br />

knows how to write programs in the C language thinks differently about<br />

<strong>programming</strong> than someone who knows how to write programs in assembly<br />

language.<br />

So to describe how <strong>programming</strong> works, this book uses a variety of examples<br />

from different <strong>programming</strong> languages. You don’t have to understand how<br />

each program example in this book works. Just understand that <strong>programming</strong><br />

languages can look and solve identical problems in wildly different ways.<br />

Getting Started<br />

Programming a<br />

Computer<br />

First, try to understand general <strong>programming</strong> principles without worrying<br />

about the way a particular <strong>programming</strong> language works. Then try to understand<br />

how a particular <strong>programming</strong> language works. As long as you know how<br />

to keep these two topics separate, you can figure out how to program a computer<br />

without the distraction of knowing a particular <strong>programming</strong> language.<br />

Programming languages rise and fall in popularity all the time, so if you know<br />

only one <strong>programming</strong> language, your skills may become obsolete within a<br />

few years.<br />

At one time, most programmers used assembly language. Then they used<br />

Pascal. When Pascal fell out of favor, programmers gravitated toward C. Because<br />

C was so hard to understand, many people started using BASIC. At the time of<br />

this writing, programmers have been flocking toward C++, C#, and Java.<br />

Tomorrow, who knows which <strong>programming</strong> language will be popular?<br />

Focus on understanding <strong>programming</strong> and then worry about understanding<br />

a particular <strong>programming</strong> language. After you understand how <strong>programming</strong><br />

works, you can adapt to the next popular <strong>programming</strong> language of tomorrow,<br />

whatever that might be.

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

Saved successfully!

Ooh no, something went wrong!