Hexagram 18: 蠱
gǔ — detoxifying; bad medicine, toxins, fixations
Judgment
Work on What Has Been Spoiled has supreme success. It furthers one to cross the great water. Before the starting point, three days. After the starting point, three days. The refactor will be difficult—crossing the great water always is—but it's the only path forward.
Image
The wind blows low on the mountain: the image of Decay. Thus the superior man stirs up public opinion and strengthens the spirit. The tech lead doesn't just fix the code—she documents the anti-patterns, conducts the lunch-and-learn, changes the culture that produced the mess.
Digital Artifact
Legacy Code Refactoring
Martin Fowler (1999)
Martin Fowler's 'Refactoring' confronts what every programmer inherits: code spoiled by previous decisions. Not malice—just entropy. Gentle indifference below (the wind, old habits) meets rigid inertia above (the mountain, institutional resistance). The result: technical debt, the bowl where worms breed. But here's the thing: what humans broke, humans can fix. You don't throw it away—you work on what's been spoiled. Three days before: understand the corruption's root cause. Three days after: ensure the new pattern holds. The refactoring isn't about blame; it's about recognizing that the father's rigid adherence to COBOL, the mother's weak validation logic—these were products of their time. You compensate. You don't rewrite from scratch—that's cowardice disguised as ambition. You take the legacy system, the codebase from 1987, and you carefully, methodically make it good again. Decay reversed through human work.
Historical Context
- Period
- Zhou Dynasty
- Oracle Bone Etymology
- Wind (☴) sits below, Mountain (☶) sits above—movement underneath stillness, creating stagnation.
- Traditional Use
- The classical text describes this as 'work on what has been spoiled'—not passive decay but active responsibility to repair what human fault has corrupted.
Lines
Line 1: 幹父之蠱有子考無咎厲終吉
Line 2: 幹母之蠱不可貞
Line 3: 幹父之蠱小有悔無大咎
Line 4: 裕父之蠱往見吝
Line 5: 幹父之蠱用譽
Line 6: 不事王侯高尚其事
Practical Guidance
Get an interactive reading with this hexagram
Try the Oracle →