Section 6Organize Your Program as It Grows

Using Methods That You Create 69Exercise: Why Good Names Are Better Than Bad Names 71

This is another fairly short section, but we bet you don't mind. The next section will be another big one—you're going to create your complete game in the next section! So, this section is really about only one new concept: using methods that you create on your own, in addition to Method Main(), to organize your program. The larger a program gets, the more important this becomes, to make your program easier for yourself and others to understand. This will be much more important with the full game, but let's practice and explain it here in our reorganized program, which does exactly the same things as our last example: ...

Get Learn to Program with Phrogram™!: A Guide to Learning Through Game Programming Using the Latest Version of Kids Programming Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.