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.

666<br />

The Programming Language of the Future<br />

For a playful introduction to robotics, buy a copy of Lego’s Mindstorms NXT<br />

robotic kid, which lets you create a robot out of Legos and use the Lego<br />

visual <strong>programming</strong> language to make your robot move.<br />

Robotics combines mechanical engineering with computer science and artificial<br />

intelligence. You can program a robot to learn, recognize spoken commands,<br />

navigate around obstacles, and make decisions on its own given incomplete<br />

in<strong>for</strong>mation. While artificial intelligence often remains an academic exercise,<br />

robotics lets you put artificial intelligence in a moving robot so you can see how<br />

well your programs actually work. (A well-designed robot program might know<br />

enough to avoid trying to roll down a staircase. A poorly designed robot program<br />

might make the robot cheerfully roll off the top of a staircase and crash at<br />

the bottom steps below.)<br />

Robotics is a growing field with no clear-cut robotics language standard yet<br />

to emerge. Who knows? With a little bit of creativity, you might be responsible<br />

<strong>for</strong> creating the next standard in robotics <strong>programming</strong>.<br />

The Programming Language of the Future<br />

Although there will always be dominant <strong>programming</strong> languages, there will<br />

never be a single perfect <strong>programming</strong> language because everyone’s needs and<br />

preferences are different. Some people prefer C <strong>for</strong> its raw power and control,<br />

whereas others prefer BASIC and other high-level languages <strong>for</strong> making <strong>programming</strong><br />

easier by hiding the technical details of manipulating the computer.<br />

If you’re planning to learn <strong>programming</strong>, the only certainty is that the language<br />

you learn today will likely not be the language you’ll be using tomorrow.<br />

Low-level languages<br />

The three most popular low-level languages are machine language, assembly<br />

language, and C. Machine and assembly language are best <strong>for</strong> creating small,<br />

fast programs. Machine language programs are often embedded in chips, such<br />

as the ones inside your computer that help your computer boot up. Assembly<br />

language is also used to create small, fast programs embedded in chips. The<br />

main difference is that assembly language is easier to write, so it allows programmers<br />

the ability to write more complicated programs than if they use<br />

machine language. The C language is used most often to create much larger<br />

programs, such as drivers <strong>for</strong> running printers, scanners, or Web cams.<br />

Learn these three low-level languages if you need speed or absolute control<br />

over the computer. If these aren’t your priority, you can safely ignore these<br />

languages, although knowing them will definitely help you better understand<br />

how a computer works.

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

Saved successfully!

Ooh no, something went wrong!