Coupling Modules Into A Structure

2022-12-19

Previous: Coupling Summary Next: Make Execution Flow Obvious

Coupling Modules Into A Structure

A Couple Of Structures: Tree And Linear

Connecting modules together produces a structure that can be considered to be a network of nodes and links (or 'edges'). (The mathematical field of graph theory is the study of these structures and their properties.)

While there are an infinite number of possible structures, a couple of foundational 'platonic forms' will be familiar: trees and chains. They are intuitive enough that diagrams will be sufficient reminders of their definitions.

Chain (Linear structure)

Tree

🙠