Data Structures

The data in software is often used to model some aspect of the real world, and as with any model, it is not a perfect representation of the real world. Consider the reader object you just created: It might contain certain attributes that correctly describe you, but there are certainly aspects of who you are that are not captured (I know there is more to me than name, age, and favorite foods). It is not possible or practical to create a full representation of yourself (or anything) in software. You must decide what is important for the purposes of your software and leave out the rest; then you must structure the important parts of the model so that the right information is easy to access and in a logical place.

To illustrate this ...

Get Learning to Program 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.