August 2000
Beginner
456 pages
9h 24m
English
| Q1: | Why have two separate files to describe the books? |
| A1: | Although book buyers are interested in information, they're not interested in all the information about all the books. In the interest of speed, the additional information isn't loaded until the user requests it. |
| Q2: | Why should I define an additional data type for the books purchased? |
| A2: | If a book has been purchased, you can assume that the seller wants to retain some information about that book. Therefore, rather than reuse the larger data type for a <Book>, use a subset that contains all the information that's needed. |
Read now
Unlock full access