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.

30<br />

Book I: Getting Started<br />

Computer scientists are constantly inventing new <strong>programming</strong> languages or<br />

improving existing ones. These improvements or new languages typically<br />

offer some feature that existing languages don’t offer or solve certain types<br />

of problems that existing languages do poorly. For example, the C++ language<br />

improves upon the C language, whereas the Java language improves upon<br />

the C++ language.<br />

Perhaps two of the biggest problems with <strong>programming</strong> involve writing a program<br />

from scratch and modifying an existing program. When you write a<br />

program from scratch, you want to write a working program quickly with<br />

as few problems as possible.<br />

That’s why <strong>programming</strong> languages include so many built-in commands. The<br />

idea is that the more built-in commands available, the fewer commands<br />

you’ll need to use to write a program and the shorter and easier your program<br />

will be to write in the first place.<br />

In addition, many <strong>programming</strong> languages include built-in error-checking features<br />

to keep you from writing a program that doesn’t work. With some languages,<br />

it’s possible to write commands that work perfectly, but can also<br />

crash the computer if you give those commands the wrong type of data.<br />

In Book I, Chapter 3, you find out more about the features of different<br />

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

Half the battle of <strong>programming</strong> is writing a program that works. The second<br />

half is modifying that program later. When you need to modify an existing program,<br />

you must first understand how that existing program works and then<br />

you need to modify it without messing up the existing program commands.<br />

To help you understand how a program works, many <strong>programming</strong> languages<br />

let you divide a large program into separate parts. The theory is that if one part<br />

of a program isn’t working or needs to be modified, you can yank out part of<br />

the program, rewrite it, and then plug it back into the existing program, much<br />

like snapping Lego building blocks together.<br />

Finally, all the best tools and the latest <strong>programming</strong> languages aren’t going<br />

to help you unless you know how to use them correctly. That’s why computer<br />

scientists are constantly developing new <strong>programming</strong> techniques that<br />

work no matter what tools or language you use.<br />

In Book I, Chapter 4, you find out more about the different <strong>programming</strong><br />

tools computer scientists have created to make <strong>programming</strong> easier, faster,<br />

and more reliable.

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

Saved successfully!

Ooh no, something went wrong!