Worth Reading #4: Components and Coupling --- Morrison, Kaye, Tornhill, and Richardson
1156 words • 6 min read • Abstract

The prior post in this series was about design patterns in software. This post covers another set of loosely related books that have influenced my approach to platform development.
With AI accelerating the discovery of exploits, the industry needs better architecture: more resilient systems that can patch vulnerabilities more quickly. My early exposure to MVS Dynamic Reconfiguration introduced me to the idea of keeping software running as the hardware changes underneath it, and I’ve been on a quest ever since to build systems that do not fail.
The ideas in these books help in building systems that are easier to change with confidence. Monolithic, tightly coupled, Big Ball of Mud architectures are brittle and hard to test, and therefore hard to change safely. Understanding how to assemble systems better, and how to test and diagnose them, seems very important to me.
| Book | Author(s), year |
|---|---|
| Flow-Based Programming | J. Paul Morrison, 1994; 2nd edition 2010 |
| Loosely Coupled | Doug Kaye, 2003 |
| Your Code as a Crime Scene | Adam Tornhill, 2015 |
| See also | Microservices Patterns, Chris Richardson, 2018 |
| The series | Worth Reading: every post |
| Comments | Discord |
Flow-Based Programming
J. Paul Morrison, Flow-Based Programming: A New Approach to Application Development (Van Nostrand Reinhold, 1994). I recently read the second edition, Flow-Based Programming, 2nd Edition: A New Approach to Application Development (2010). An application as a network of black-box components that share no data and communicate only by passing packets of data along connections, defined outside the components themselves. Morrison developed the approach at IBM in the early 1970s, two decades before the book. The data-flow-first pipelines of X_eTaL’s Flow library are in the same spirit. So are TSO Pipelines and CMS Pipelines, IBM’s record-oriented pipes on the mainframe, which I used heavily and recreated in Rust for TBT #2: Pipelines on OS/390.
I learned an interesting approach to data buffers from it: instead of copying a buffer from program to program, dispatch the programs against changing versions of the buffer.
After reading the first edition I discovered JavaSpaces and Linda, which gave me new ideas about distributed data processing.
Loosely Coupled
Doug Kaye, Loosely Coupled: The Missing Pieces of Web Services (RDS Press, 2003). The hard parts of web services: security, reliable messaging, and long-lived, asynchronous transactions between systems that should know as little about each other as they can. Coupling is one of the things sw-checklist measures.
Kaye’s book predates microservices by about a decade, but the case it makes for loosely coupled, independently evolving services is the same one microservices architecture later built on. For that later view, see Chris Richardson’s Microservices Patterns (Manning, 2018).
Part of the appeal of loosely coupled services, and of microservices, is that a small service can be written in a language that makes it quick to deploy, and later rewritten in a more secure or higher-performance language as needed. Small, testable services are easier to maintain, patch and extend.
Decades-old monoliths are still in use precisely because their tight coupling makes changes hard to implement, difficult to verify and risky to deploy. Rewriting a large, complex system has its own problems: the second-system effect Brooks warned about. Small, testable, composable services could be less prone to it.
Your Code as a Crime Scene
Adam Tornhill, Your Code as a Crime Scene: Use Forensic Techniques to Arrest Defects, Bottlenecks, and Bad Design in Your Programs (Pragmatic Bookshelf, 2015). Forensic psychology applied to a code base’s version-control history: hotspots, the few files where most of the work and most of the defects land, and temporal coupling, files that change together although nothing in the code says they depend on each other.
As an operating system developer at IBM, I was involved in studies that analyzed the bugs in our code. One of the worst and most frequent causes was an inexperienced programmer making changes to a large, complex component. Later, as a technology transfer engineer at IBM’s T.J. Watson Research Center, I worked with computer scientist Ram Chillarege on Orthogonal Defect Classification. Later, at Silicon Valley startups, I used the code from this book to analyze code bases and the bugs we tracked.
Today I still use ODC concepts when I analyze the bugs that escape from my AI coding agent projects, to give feedback to the agents. I really want AI coding agents to learn from their mistakes and to prevent similar ones in the future.
Closing
These books come together in a back-burner project of mine: a distributed system that can be monitored, debugged and patched, with automatic rollback. AI coding agents and my growing toolbox are bringing me closer to building and demonstrating it. Forte Software’s Conductor was an inspiration, as an early example of this kind of robust distributed system. So was Paul Graham’s use of Lisp to add features and fixes dynamically to a running system.
Part 4 of the Worth Reading series. View all parts
Comments or questions? SW Lab Discord or YouTube @SoftwareWrighter.