Part IIPackage Design

Package Design

Code consists of statements, grouped into functions, grouped into classes, grouped into packages, combined into systems. There are several insights about this chain of concepts that I would like to discuss here, before we dive into the actual principles of package design.

Becoming a Programmer

It occurred to me that in my programming career I learned about these different concepts in the exact same order in which I just mentioned them. The first thing I learned about PHP as a young website builder was to insert PHP statements into a regular HTML file. By doing so, it was possible to turn a static HTML page into a dynamic one. You could conditionally show some things on the page, dynamically build a navigation ...

Get Principles of Package Design: Creating Reusable Software Components 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.