Identify a Pattern
This procedure follows the account in The Timeless Way of Building of how a pattern is discovered and made shareable. Alexander describes a pattern as a rule with three parts: a context, a system of forces that keeps arising in that context, and a configuration that lets those forces resolve. It is at once a thing that exists in the world and the instruction for making it. To share one, you must make all three parts explicit.
Steps
- Start with observation. Choose a kind of situation you know well, such as answers given to readers, handoffs between authoring and review, or incidents in a retrieval system. Collect real examples, as many as you can.
- Sort the examples by how they feel to the people in them. Put the cases where things went well, where readers trusted the answer, authors felt the content was theirs, the on-call engineer found the cause quickly, in one group. Put the cases where they did not in another. Judge by the experience of the people involved, not by your opinions about technology.
- Find the property that makes the difference. Look for something present in all the good cases and absent from all the bad ones. You will not succeed perfectly. Come as close as you can. The property will be a relationship, not a single attribute: not “used a large model” but, for example, “the answer was composed only from passages that applied to the reader’s product version, and the passages were chosen before ranking.”
- Work from the negative side too. Alexander found SOUTH FACING OUTDOORS by noticing that the north sides of houses were dank and unused. Look at what fails, find where it does not fail, and ask what is different. The positive and negative approaches complement each other.
- Or reason your way to it. A pattern need not exist in the world already. If you can reason from the forces to a configuration that must resolve them, you may have found a pattern before anyone has built it. Mark it as Proposed, without asterisks, until it is built and observed.
- State what it is. Name the concrete configuration: which parts stand in which relation. “Trustworthy answers” or “good governance” are qualities, not configurations; nobody can build “one of those.” Keep working until you can say which artifacts, records, services, and people stand in which relation to one another.
- State why it works. Write the forces it resolves: at least three pressures that are incompatible without the configuration and compatible with it. If you can write only one force, you have a preference, not a pattern.
- State where it applies. Define the range of contexts in which the forces occur and the configuration resolves them. Say where it does not apply. A pattern for answering from evidence makes no sense in a creative brainstorming tool, and the pattern should say so.
- Make it a thing you can draw. Alexander’s rule is blunt: “If you can’t draw a diagram of it, it isn’t a pattern.” Draw it in three to seven labeled boxes and the relations among them. If the diagram is a list, the pattern is still a list of virtues.
- Search for its name. A weak name means a weak concept. Try names until you find one that lets someone ask, of any design, “have we built one of those?” and answer at once. The names usually improve in stages: from a vague process (“answer safety step”), to a relationship (“answers related to sources”), to a specific relation (“answers cite their sources”), to a thing that can be present or absent (“ANSWER FROM THE EVIDENCE”).
- Make it precise enough to be wrong. Woolly statements cannot be argued with and therefore cannot be shared. State the pattern so that someone could check it against their own systems and find it false. Strike a balance: too narrow, and it excludes good solutions; too loose, and it admits bad ones.
- Place it in the network. Name the larger patterns it helps complete and the smaller patterns that complete it. A pattern connected to nothing is not yet part of the language.
- Test it. Follow Test a pattern against life before writing it up in full.
Result
A candidate pattern with a configuration, forces, a context, a diagram, a name, and a place in the network: definite enough to be discussed, used, and, if it is wrong, shown to be wrong. Alexander notes that this vulnerability is exactly what makes a pattern ready to be shared. Write it up with Write a pattern.