Day 9. Inheritance and Modules

“And entitled A Song in the Time of Order,” came the professor's voice, droning far away. “Time of Order”—Good Lord! Everything crammed in the box and the Victorians sitting on the lid smiling serenely…

—F. Scott Fitzgerald, This Side of Paradise

The lessons for today and the two following days make up an informal cycle devoted to exploring the matter of program organization. When we do real work in the real world, our scripts can sometimes grow to the point where they are hard to manage and understand. Fortunately, Ruby supports and encourages modular thinking. We're about to learn some of the skills that will make us “scalable” programmers—no job is too big or too small!

Get Sams Teach Yourself Ruby in 21 Days 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.