Skip to Content
Learning Processing
book

Learning Processing

by Daniel Shiffman
April 2009
Intermediate to advanced content levelIntermediate to advanced
472 pages
11h 36m
English
Morgan Kaufmann
Content preview from Learning Processing
Chapter 11

Debugging

“The difference between the right word and the almost right word is the difference between lightning and a lightning bug.”

—Mark Twain

“L’appétit vient en mangeant.”

—The French

Bugs happen.

Five minutes ago, your code was working perfectly and you swear, all you did was change the color of some object! But now, when the spaceship hits the asteroid, it doesn’t spin any more. But it was totally spinning five minutes ago! And your friend agrees: “Yeah, I saw it spin. That was cool.” The rotate( ) function is there. What happened? It should work. This makes no sense at all! The computer is probably broken. Yeah. Yeah. It is definitely the computer’s fault.

No matter how much time you spend studying computer science, reading ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Processing, 2nd Edition

Learning Processing, 2nd Edition

Daniel Shiffman
Interactive Lecturing

Interactive Lecturing

Elizabeth F. Barkley, Claire H. Major

Publisher Resources

ISBN: 9780080920061