Monday, August 14, 2006

Programming Rules

  1. Always write code to be reusable (or re-write code to be re-usable). Never encode the same logic twice.
  2. Always make data referenceable. Never encode data within logic or infrastructure.
  3. Use meaningful Names with words who's definition fits the concept you are representing. Use a Dictionary or Thesaurus. Avoid plurals and grammatical sugar, stick with root words and descriptive adjectives. (A list of users is a UserList not Users)
  4. Everything changes. (Static is good. Dynamic is better.)
  5. Everything has scope. (Nothing is global but everything is accessable). (see 2)
  6. Code is data. (see 5)
  7. If a change to the system can be represented in code, keep the code! (see 6)
  8. Everything should be as human readable as possible.
  9. Never delete anything. Archive, deactivate, omit or ignore unwanted data. (see 7)
  10. Always track data redundancy. Never create redundancy indiscriminately. (see 1)

Define: Game

  • a single play of a sport or other contest; "the game lasted two hours"
  • a contest with rules to determine a winner; "you need four people to play this game"
  • an amusement or pastime; "they played word games"; "he thought of his painting as a game that filled his empty time"; "his life was all fun and games"
  • the game equipment needed in order to play a particular game; "the child received several games for his birthday"
  • animal hunted for food or sport

Wednesday, August 09, 2006

Once upon a time there was a not so wise Man.

This Man was sitting atop a mountain, legs in lotus position, palms gently resting towards the sky, in quiet meditation. If you asked this Man what he was doing he would respond, at great length, about the nature of his mediation. He would tell you that his mediation was of a truly zen nature. He would tell you that his meditation gave him terrific mental powers. He would tell you that his mediation gave him memory beyond memory.

Many years ago this Man's memory was said to be quite awful. Many people said this about him, at many times, in many places. After many years of forgetting many things, he decided to change for the better. He began meditation upon this mountain.

If, by some magical ability, you were able to go up that mountain and go to that Man and, without interrupting his meditation, enter his very mind, you would immediately be struck by his inner monologue: "... don't forget the mayonnaise... don't forget the mayonnaise... don't forget the mayonnaise...".

I know this Man.


Imagine this.

You live in suburbia. You have a bomb shelter. You have a neighbour. You see your neighbour mowing his lawn. You see a blinding flash of light. You see a mushroom cloud in the distance. You rush to your shelter and bunker in for the long haul.

Years later, you emerge and what do you see? ... You see your neighbour mowing his lawn. It's the same guy! Mowing the same lawn!!!