O'Reilly logo

Adventures in Coding by Chris Minnick, Eva Holland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ch01-pag23

TESTING IS A vital part of programming. It’s said that you should spend as much time testing your programs as you spend writing them. In this appendix, we show you ten simple techniques, tools, and tips for finding and preventing errors, or bugs, in your programs.

Practice Proper Planning

The key to success in programming is planning. If your program is going to involve multiple scenes, scripts, or sprites, sketch it out on paper or in a drawing program before you start coding.

Another name for this rough drawing of your program is wireframe. For example, Figure B-1 shows how you might draw a wireframe for the 3-Ring Circus program that you created in Adventure 5.

image

Figure B-1 A wireframe for the 3-Ring Circus program

When you’re drawing a wireframe, don’t worry about how it looks or about getting everything perfect. The idea is just to create something visual that you can look at while you’re programming to help you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required