Home Segments Top Top Previous Next

54: Mainline

In this book, you see many templatelike, general-purpose program patterns—sometimes called programming idioms—that you can fill in to suit your own specific purpose. In these patterns, each place to be filled in is identified by a description of the item to be inserted, such as this phrase.

When you fill in a pattern, replacing descriptions with specific instances of the general categories described, you are said to instantiate the pattern.