1 Thou shalt run lint frequently and study its pronouncements with care, for verily its perception and judgement oft exceed thine.
2 Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end.
3 Thou shalt cast all function arguments to the expected type if they are not of that type already, even when thou art convinced that this is unnecessary, lest they take cruel vengeance upon thee when thou least expect it.
4 If thy header files fail to declare the return types of thy library functions, thou shalt declare them thyself with the most meticulous care, lest grievous harm befall thy program.
5 Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest “*foo’’ someone someday shall type ‘‘supercalifragilisticexpialidocious’’.
6 If a function be advertised to return an error code in the event of difficulties, thou shalt check for that code, yea, even though the checks triple the size of thy code and produce aches in thy typing fingers, for if thou thinkest ‘‘it cannot happen to me’’, the gods shall surely punish thee for thy arrogance.
7 Thou shalt study thy libraries and strive not to re-invent them without cause, that thy code may be short and readable and thy days pleasant and productive.
8 Thou shalt make thy program’s purpose and structure clear to thy fellow man by using the One True Brace Style, even if thou likest it not, for thy creativity is better used in solving problems than in creating beautiful new impediments to understanding.
9 Thy external identifiers shall be unique in the first six characters, though this harsh discipline be irksome and the years of its necessity stretch before thee seemingly without end, lest thou tear thy hair out and go mad on that fateful day when thou desirest to make thy program run on an old system.
10 Thou shalt foreswear, renounce, and abjure the vile heresy which claimeth that “All the world’s a VAX”’, and have no commerce with the benighted heathens who cling to this barbarous belief, that the days of thy program may be long even though the days of thy current machine be short.
1 Du sollst lint häufig ausführen und seine Aussagen sorgfältig studieren, denn wahrlich, seine Wahrnehmung und sein Urteil übertreffen oft die deinen.
2 Du sollst dem NULL-Zeiger nicht folgen, denn Chaos und Wahnsinn erwarten dich an seinem Ende.
3 Du sollst alle Funktionsargumente in den erwarteten Typ umwandeln, wenn sie nicht bereits diesem Typ entsprechen, selbst wenn du überzeugt bist, dass dies unnötig ist, damit sie keine grausame Rache an dir nehmen, wenn du es am wenigsten erwartest.
4 Wenn deine Header-Dateien die Rückgabetypen deiner Bibliotheksfunktionen nicht deklarieren, sollst du sie selbst mit größter Sorgfalt deklarieren, damit deinem Programm kein schwerer Schaden zugefügt wird.
5 Du sollst die Array-Grenzen aller Strings (ja, aller Arrays) überprüfen, denn wo du „*foo” eingibst, wird sicherlich irgendwann jemand „supercalifragilisticexpialidocious” eingeben.
6 Wenn eine Funktion dafür vorgesehen ist, im Falle von Schwierigkeiten einen Fehlercode zurückzugeben, sollst du diesen Code überprüfen, ja, auch wenn die Überprüfungen die Größe deines Codes verdreifachen und deine Finger beim Tippen schmerzen lassen, denn wenn du denkst „das kann mir nicht passieren”, werden die Götter dich mit Sicherheit für deine Arroganz bestrafen.
7 Du sollst deine Bibliotheken studieren und dich bemühen, sie nicht ohne Grund neu zu erfinden, damit dein Code kurz und lesbar und deine Tage angenehm und produktiv sind.
8 Du sollst deinen Mitmenschen den Zweck und die Struktur deines Programms klar machen, indem du den einzig wahren Klammerstil verwendest, auch wenn er dir nicht gefällt, denn deine Kreativität ist besser für die Lösung von Problemen geeignet als für die Schaffung schöner neuer Hindernisse für das Verständnis.
9 Deine externen Bezeichner sollen in den ersten sechs Zeichen eindeutig sein, auch wenn diese strenge Disziplin lästig ist und die Jahre ihrer Notwendigkeit sich scheinbar endlos vor dir ausbreiten, damit du dir nicht die Haare raufst und an jenem schicksalhaften Tag, an dem du dein Programm auf einem alten System laufen lassen willst, den Verstand verlierst.
10 Du sollst der abscheulichen Ketzerei, die behauptet,„Die ganze Welt ist eine Virtual Address eXtension”, abschwören, sie ablehnen und ihr entsagen und keinen Umgang mit den unwissenden Heiden haben, die an diesem barbarischen Glauben festhalten, damit die Tage deines Programms lang sein mögen, auch wenn die Tage deiner aktuellen Maschine kurz sind.