Everything2
Near Matches
Ignore Exact
Full Text
Everything2

The Laws of Coding

created by kaatunut

(idea) by dabcanboulet (2.2 wk) (print)   ?   (I like it!) Fri Feb 21 2003 at 5:23:36

  1. If it ain't broke, don't fix it.
  2. Design for failure. Can also be expressed as "shit happens so plan for it and deal with it".
  3. Verify your assumptions.
  4. Implementation matters.
  5. Interfaces matter more.
  6. That which works is better than that which doesn't.
  7. Elegance matters.
  8. Cuteness doesn't.
  9. If it hasn't been tested then it doesn't work.
  10. Solve the right problem.
  11. Understand when performance matters.
  12. Correctness always matters (i.e. nobody is interested in fast wrong answers).
  13. Explain why.
  14. Flexibility matters.
  15. True perfection is more often achieved by removing features than by adding features. Can also be expressed as "avoid feeping creaturism".
  16. Code for the ages (i.e. pretend that YOU are going to have to maintain the code in five years).
  17. Avoid magic numbers.
  18. Think ahead. No! Further than that!!
  19. If it ain't broke, don't fix it.
'nuf said.*


Sources

  • twenty plus years of making mistakes with a computer keyboard.


* Many of these could use clarification and/or elaboration. I and/or others will/should/have/might write nodes (or even entire books) as appropriate. I don't believe that adding dozens of paragraphs of clarification in this writeup would be appropriate (and it would take dozens of paragraphs to clarify/elaborate all of these "laws" properly).


printable version
chaos

Why programmers don't comment their code The programmer's dilemma Learn to Program What would aliens think of us if Everything was all they had?
HHOS magic number Hippocratic oath Elegance
Questions you never asked, but now that I mention it, yeah, that's a good point The quick brown fox jumps over the lazy dog Not really by the rules, but... code
Cute coding source code Amdahl's law
HMAS Westralia The odds are good, but the goods are odd You can take the mall out of the ghetto, but you can't take the ghetto out of the mall Seveso
If it ain't broke, don't fix it Rockefeller Drug Laws C++ Stormtrooper Effect
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
The best nodes of all time:
If you can't write something nice, don't write anything at all
shotgun house
Dem Bones Gonna Rise Again
redheads
Sleeping at work
Fedayeen Saddam
Everything Daylogs
Rebel Without a Cause
Blade Runner
What girls aren't taught
warning label
Shotgun
The Half Asian Identity
New Writeups
jessicaj
July 26, 2008(dream)
Berek
ABBA(person)
devolution
k-hole(place)
Nadine_2
The Sound Of Madness(review)
Twin Eclipse
Conversations with God: An Uncommon Dialogue(idea)
SwimmingMonkey
Conversations with Fo Fo- the Loneliest dog in Purgatory(fiction)
locke baron
lynx(thing)
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
antigravpussy
I fall silent, listening. The breadcrumbs are talking about us(person)
calgon
Buffalo Bill by the pool(poetry)
gate
Anarchy is Order(idea)
ushdfgakjasgh
Scribeling(thing)
XWiz
Trism(review)
This affordable entertainment brought to you by The Everything Development Company