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 number of arrows in is the number of packages that import it.
- No arrows in confirms an entry point. Any arrow in rules one out.
The Koa program again.
Loading the layer diagram.
How to read this: what each mark in these pictures means
Loading the worked examples and practice.