Peter's Golden Nuggets of Wisdom

Contribute here list of nuggets of wisdom from Prof Peter Norvig:

Forum Thread: http://forums.udacity.com/questions/5000551/peters-golden-nuggets-of-wisdom?sort=active&page=1#cs212


The amount of change to the program should be proportional to the amount of change in the conceptualization.


Notice we've lost the exclamation mark point. He's not as excited about his hand this time.


You speed up 100% of the computations you don't make.


To be a good programmer, you must be a good tester.


One of the most important ways to manage complexity is to leave it out completely, just go for the simple solution.


Don't worry about minimizing it (your code); worry about making it clear.


What are pickles? They're ways of storing cucumbers for a long time so they don't get rotten.


The question was designed so that you had a choice: you could do it "in your head", if that's the kind of head you have, but if you don't, that's also fine. You can easily "run some code.


For those who can't divide by e in your head, we'll use the log10 logarithms.


Practice. Part of it is knowing what you want to say, and part is knowing how to say it.


The best is the enemy of the good.


DRY: Don't Repeat Yourself.