Reading diagrams / Topic 3 of 42

Levels: built on what is below

The rule

The diagram draws packages in levels. Each level is a shaded row with its number at the left, from “level 0” at the bottom.

A package that imports nothing from the program sits on the bottom level, level 0. Every other package sits one level above the highest package it imports. So every arrow points down, and a package is always above everything it is built on.

In a review, watch for a package that moves up a level. It has started importing something higher than before. An arrow may skip levels: a package can import one far below it as well.

The Koa program again.

Loading the layer diagram.

Loading the worked examples and practice.