Skip to Content
The Linux Command Line
book

The Linux Command Line

by William E. Shotts Jr.
January 2012
Beginner content levelBeginner
480 pages
17h 46m
English
No Starch Press
Content preview from The Linux Command Line

Chapter 26. Top-Down Design

As programs get larger and more complex, they become more difficult to design, code, and maintain. As with any large project, it is often a good idea to break large, complex tasks into a series of small, simple tasks.

Let’s imagine that we are trying to describe a common, everyday task—going to the market to buy food—to a person from Mars. We might describe the overall process as the following series of steps:

  1. Get in car.

  2. Drive to market.

  3. Park car.

  4. Enter market.

  5. Purchase food.

  6. Return to car.

  7. Drive home.

  8. Park car.

  9. Enter house.

However, a person from Mars is likely to need more detail. We could further break down the subtask “Park car” into another series of steps.

  1. Find parking space.

  2. Drive car into space.

  3. Turn off motor.

  4. Set parking ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Linux Command Line, 2nd Edition

The Linux Command Line, 2nd Edition

William E. Shotts
Linux Fundamentals

Linux Fundamentals

Sander van Vugt

Publisher Resources

ISBN: 9781593273897Errata Page