Reading diagrams / Topic 4 of 42

Arrows in: shared packages and entry points

The rule

So far you have read the arrows that leave a box. Now read the ones that end at it. Each arrow into a box is one package that imports it.

A box with many arrows in is shared: many parts of the program build on it, so a change there reaches all of them. A box with no arrows in is an entry point. Nothing in the program builds on it, so the program is used from there: a server's start, a command, or what another program calls.

In a review, a new arrow into a package means one more part of the program now depends on it. A new arrow into an entry point means it is no longer one: something inside the program now builds on it.

The Koa program again.

Loading the layer diagram.

Loading the worked examples and practice.