Wednesday, May 09, 2007

Some Lessons

There are some important ideas in algorithm and program design:
  1. There is more than one way to do it.
    Your first task is to find a correct algorithm. After that, strive for clarity,simplicity, efficiency, scalability and elegance. Good algorithms and programs are like poems of logic. They are a pleasure to read and maintain.
  2. Be the computer.
    Grand Master Turing once dreamed that he was a machine. When he awoke he exclaimed: "I dono't know whether I am Turing dreaming that I am a machine, or a machine dreaming that I am Turing!"
  3. Generality is good.
  4. Don't reinvent the wheel.
    As you are learning to program, designing from scratch is great experience. Truly expertprogrammers, however, know when to borrow.
-- 7.5.5 Some Lessons

Science is organized knowledge. Wisdom is organized life.
-- Immanuel Kant

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home