Tuesday, May 26, 2009

Principle of Least Astonishment

I've been reading code from other programmers lately and I'm feeling the need to vent a little about things that are more complex than necessary.

We all bring a limited amount of intellectual energy to the party. Let's not waste it on efforts to impress one another.

If there are two ways to solve a problem where one is boring and is cool, pick the boring one. Save the cool trick for when you really need it.

So, let's all renew our committment to the principle of least astonishment. It applies to fellow programmers as well as our users.