Hexagram 18:

detoxifying; bad medicine, toxins, fixations

Upper TrigramMountain
Lower TrigramWind

Judgment

detoxifying; bad medicine, toxins, fixations
yuánmost; first-rate, supreme, excellent
hēngfulfilling; fulfillment, satisfaction, success
worthwhile, rewarding, favorable
shèto cross, ford, ferry, venture, experience
the great, big, major
chuānstream, river, current, waters
xiānbefore, prior to, ahead of
jiǎthe beginning, start, new cycle, departure
sānthree
days
hòuafter, subsequent to, following
jiǎthe beginning, start, new cycle, departure
sānthree
days

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

shāna mountain
xiàbelow, beneath; at the base, foot of
yǒuis, there is, was
fēngwind
detoxifying; fixation; decaying, stagnating
jūnnoble, worthy, honored
young one, heir, disciple
accordingly, therefore, thus
zhènstimulates, arouses, stirs up, quickens
mínthe people, public; society, humanity
to nourish, foster, fortify, raise, bring up
character, virtue, merit, spirit, ability

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: 幹父之蠱有子考無咎厲終吉

gàncorrect, attend to, repair, rectifying
father
zhī's; paternalistic
fixations, toxins, decadence, bad medicine
yǒuif, where there is, one has; to be, have
a young one, child, heir
kǎoto examine, investigate, in questioning
no; not; is not; there is no; no harm done
jiùblame; wrong; mistake
difficulty, hardships; distressing
zhōngbut at, by, in the end; eventually, at last
promising, auspicious, hopeful

Line 2: 幹母之蠱不可貞

gàncorrect, attend to, repair, rectifying
mother
zhī's; maternalistic
fixations, toxins, decadence, bad medicine
no, not; un-; ill-
calling, acceptable for; suited, fitted to
zhēnpersistence, determination, resolve, firmness

Line 3: 幹父之蠱小有悔無大咎

gàncorrect, attend to, repair, rectifying
father
zhī's; paternalistic
fixations, toxins, decadence, bad medicine
xiǎothe small, petty, mediocre; a little
yǒuthere will be; one has, will have
huǐregrets, remorse, repentance
but no, not, without, with no
great, big, important, major, critical
jiùerror, mistake; blame, harm, wrong

Line 4: 裕父之蠱往見吝

tolerating, indulging, accepting, condoning
father
zhī's; paternalistic
fixations, toxins, decadence, bad medicine
wǎngto continue thus, go on, proceeding
jiànmeets with, sees, encounters
lìndisgrace, embarrassment, shame, humiliation

Line 5: 幹父之蠱用譽

gàncorrect, attend to, repair, rectifying
father
zhī's; paternalistic
fixations, toxins, decadence, bad medicine
yònguse, apply, employ, practice, offer, try
praise, respect, honor, recognition as due

Line 6: 不事王侯高尚其事

does, will, would not; without; no
shìserve, working for; work, business, affair
wángof sovereign, king, ruler
hóuor noble, delegate, governor, chief
gāoof noble, lofty, higher; exalted, superior
shàngworth, value, credit, honor
one's own, this, such
shìservice, work, concern, business, affair, task

Practical Guidance

You've inherited the codebase. It's bad. You know it's bad because you opened three files and saw the god-class that everyone warned you about, the bizarre coupling that makes no sense until you understand there was a deadline in Q3 2019 and someone chose survival over architecture. The corruption has a history. Before you touch a line—three days, the text says, but really: take time to understand why the rot exists. That god-class? Someone's attempt to manage complexity without proper abstractions. Your job is to understand, then plan your refactor. Small changes. Tests first. Feature flags so you can roll back when (not if) something breaks. After you deploy: watch it. Monitor the metrics. Make sure developers don't immediately revert to the comfortable old patterns. Cultural change takes longer than code change. Here's the danger: too little energy and you tolerate the rot, face humiliation when the system collapses. Too much energy and you break things, create new problems worse than the old ones. The middle path—vigorous but not violent, reforming but not revolutionary—that's what actually works. You're not erasing history. You're building on it, responsibly, like an adult.

Get an interactive reading with this hexagram

Try the Oracle →