ALL-ARCH0003 · examples
These examples come directly from ALL-ARCH0003. Read their source.
Bad
`codec.py` is imported by eight modules and imports two, so `I` is `0.2`. It imports `cli.py`,which imports six modules and is imported by none, so `I` is `1.0`. Every edit to the commandline can now reach the codec, and through it the eight modules that depend on the codec. Thisreturns `1`.
Goodcli.py imports codec.py. The arrow runs from the volatile module to the settled one, so a
change to the command line reaches nothing and a change to the codec is a decision somebody
made deliberately. This returns 0.