O'Reilly logo

Programming for the Absolute Beginner by Jerry Lee Ford

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

Chapter 7. Improving Program Organization with Functions and Subroutines

The larger your applications become, the more complicated your program code becomes and the more difficult things are to maintain. One effective way of making your programs easier to create and maintain is to break them up into small parts, which you can then use as building blocks to create a larger program. One way of accomplishing this is through procedures. You’ve used procedures in the development of most of the game applications you’ve already created in this book. In this chapter you will learn how to work with two types of procedures—subroutines and functions. You will learn how to pass data to your subroutines and functions for processing. You will also learn how ...

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