15.04.2018 Views

programming-for-dummies

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 4: Programming Tools<br />

In This Chapter<br />

Choosing a compiler and interpreter<br />

Using a virtual machine<br />

Editors, debuggers, toolkits, and profilers<br />

Help file creators<br />

Installers and disassemblers<br />

The two most important tools a programmer needs are an editor and a compiler.<br />

An editor lets you type and save language commands (called the<br />

source code) in a plain text file. (Unlike a word processor file, a text file doesn’t<br />

contain any <strong>for</strong>matting, like italics or fonts.) A compiler converts your source<br />

code into machine code and stores those machine code commands in a separate<br />

file (often called an executable file). After you store your program in an<br />

executable file, you can sell and distribute that executable file to others.<br />

An editor and a compiler are absolutely necessary to write and distribute<br />

programs. However, most programmers also use a variety of other tools to<br />

make <strong>programming</strong> easier. To help them track down problems (bugs) in a<br />

program, programmers use a special tool, a debugger. To help them identify<br />

which parts of a program may be making the entire program run too slow,<br />

programmers can use another tool, a profiler.<br />

For distributing programs, programmers often use a help file creator and an<br />

installer program. The help file creator makes it easy <strong>for</strong> the programmer to<br />

create, organize, and display help that the user can read while using the program.<br />

The installer program makes it easy <strong>for</strong> users to copy all the necessary<br />

files on to their computer so the program runs correctly.<br />

Finally, programmers may also use a special tool — a disassembler — which<br />

can pry open another program to reveal how it works. Disassemblers are<br />

often used by security professionals to analyze how viruses, worms, and<br />

spyware programs work. For less honorable uses, programmers can also use<br />

a disassembler to dissect a rival program and study how it works.<br />

Programmers often get so attached to their favorite <strong>programming</strong> tools that<br />

they’ll argue the merits of their favorite editor or compiler with all the passion<br />

of a religious fanatic. Just as there is no single <strong>programming</strong> language that’s<br />

the best language to use at all times, so there is no single <strong>programming</strong> tool<br />

that’s the best tool to use all the time.

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

Saved successfully!

Ooh no, something went wrong!