Deep Modules
A design principle from the classic software design book A Philosophy of Software Design, which advocates hiding complexity behind minimal interfaces and using clear boundaries to limit the spread of disorder in AI-generated code.
Timeline (last 90 days)
Deep Module is a core concept proposed in "A Philosophy of Software Design": a module with a minimal interface that encapsulates a large amount of complexity internally; a shallow module, by contrast, has a complex interface and leaks complexity to callers.
AI naturally favors creating a chaotic network of shallow modules, exposing too much complexity and quickly losing context; enforcing deep module design can carve out a sandbox with clear boundaries for AI.
Matt advocates building deep modules—modules that hide large amounts of functionality behind a simple interface rather than a fragmented shallow interface structure—to facilitate testing and help AI comprehension.
All Facts (3)
Deep Module is a core concept proposed in "A Philosophy of Software Design": a module with a minimal interface that encapsulates a large amount of complexity internally; a shallow module, by contrast, has a complex interface and leaks complexity to callers.
50%UnverifiedAI naturally favors creating a chaotic network of shallow modules, exposing too much complexity and quickly losing context; enforcing deep module design can carve out a sandbox with clear boundaries for AI.
50%UnverifiedMatt advocates building deep modules—modules that hide large amounts of functionality behind a simple interface rather than a fragmented shallow interface structure—to facilitate testing and help AI comprehension.
50%