~/post/2026-12-04-16-commandments-of-software-engineering
The 16 Commandments of Software Engineering
Sixteen commandments for the software engineer, numbered in binary as they should be. With one erratum found by QA after the release, and a quantum edition for those who obey and violate them at the same time.
And it came to pass that the engineer went up the mountain, for the Wi-Fi was better there, and came down with two tablets. They were not of stone. They were 10-inch ones, and one of them already had a cracked screen.
Upon them were written sixteen commandments. Not ten, for ten is a number for people who count on their fingers.
For sixteen is holy, being the fourth power of two.
The Commandments
0000 — Thou shalt not reinvent the wheel.
Unless the wheel is proprietary, unmaintained, or written in PHP.
0001 — Thou shalt commit thy code.
For that which exists only on thy local machine shall one day cease to exist.
0010 — Thou shalt not commit unto main.
For the branch is sacred, and production is not thy playground.
0011 — Thou shalt honour backward compatibility.
For countless souls depend upon the interfaces thou hast foolishly exposed.
0100 — Thou shalt not hardcode thy secrets.
Neither shalt thou commit them, for Git remembers all sins.
0101 — Thou shalt write tests.
For faith alone shall not ensure the correctness of thy implementation.
0110 — Thou shalt document thy creations.
For thy future self shall be as a stranger unto thine own code.
0111 — Thou shalt keep thy code simple.
Blessed are the maintainable, for they shall inherit the codebase.
1000 — Thou shalt not optimise prematurely.
Measure first, lest thou spend three days saving three nanoseconds.
1001 — Thou shalt handle thine exceptions.
For ignoring an error does not absolve thee of its consequences.
1010 — Thou shalt not blame the user.
For an interface that requires divine revelation is poorly designed.
1011 — Thou shalt remember the backup and keep it tested.
For an untested backup is but a prayer.
1100 — Thou shalt not worship false technologies.
Neither frameworks, nor programming languages, nor architectural patterns shall become thine idols.
1101 — Thou shalt review thy neighbour’s code as thou wouldst have thy own reviewed.
With patience, humility, and constructive criticism.
1110 — Thou shalt not deploy on Friday.
For the weekend is sacred, and on-call engineers deserve their rest.
1111 — Thou shalt leave the codebase better than thou found it.
For dust thou art, and to legacy code thy software shall return.
In the beginning was the Source, and the Source was with Git, and the Source was Git.
Amen. Exit code 0.
Erratum: the seventeenth commandment
The tablets were shipped with sixteen commandments and the ticket was closed. Then QA looked at them, and the ticket was reopened.
10000 — Thou shalt not say it is done until QA hath passed it.
For “it works on my machine” is a testimony, not a proof.
Yes, it does not fit in four bits. That is an overflow, and nobody noticed it before the release, because the engineer said it was done.
Amen again. Exit code 1, until retested.
The Quantum Edition
Still 16 commandments if we use four qubits, since 24 = 16 computational basis states.
However, in the quantum version, the software engineer can simultaneously exist in a superposition of obeying and violating all sixteen commandments, until the code review collapses the wave function.
There are four more commandments for this case. Two qubits are enough to number them.
|00⟩ — Thou shalt not collapse thy wave function prematurely.
Measure last, for he who peeks at the result in the middle of the computation shall receive a result, but not the one he wanted.
|01⟩ — Thou shalt not clone that which cannot be cloned.
For git clone worketh not upon a qubit, and neither doth copy and paste.
|10⟩ — Thou shalt remain entangled with thy fellow engineers.
For what one of them changeth shall be felt at once by the other, however far away he sitteth.
|11⟩ — Thou shalt not confuse uncertainty with undefined behaviour.
For the one is a law of nature, and the other is thine own fault.
And God said, «Let there be light», and there was both light and no light, until He observed it.
Amen and not Amen. Exit code (|0⟩ + |1⟩) / √2.