Programming rules
…the following list is essentially the table of contents for my book Enough Rope to Shoot Yourself in the Foot (McGraw-Hill, 1995). The book was written with C/C++ in mind, but most of the rules apply to programming in general and OO programming in other languages (such as Java) in particular. You should go get the book if you want to see why the rules are what they are and to see detailed explanations for each rule. Bear in mind, though, that all of these are just rules of thumb. There are always exceptions….
Wat voorbeeldjes:
15. First, do no harm
20. Goof off
22. Uncommented code has no value
65. Assume that things will go wrong
66. Computers do not know mathematics
85. Stamp out the demons of complexity
reacties (5)
*ziet Dogbert met een stokje de demonen der stupiditeit uitdrijven*
Regel ter frustratiepreventie: Schrijf geen code op een QWERTY als u een AZERTY gewoon bent.
qllew, zqqr hebt gij het over
01100001-01101100-01101100-01100101-01111010-00101100-00100000-01101101-01100001-01101110-01101110-01100101-01101110-00101110-00101110-00101110-00100000-01100101-01100101-01101110-00100000-01100010-01100101-01100101-01110100-01101010-01100101-00100000-01100011-01101111-01100100-01100101-00100000-01101101-01101111-01100101-01110100-00100000-01110100-01101111-01100011-01101000-00100000-01101011-01110101-01101110-01101110-01100101-01101110-00100000-00111111
voila. zet da maar eens om
(tip: bin naar dec en dan dec naar ascii héhé)