A daily dose of software engineering wisdom - inspiring, thought provoking, and sometimes just plain dangerous.

Tags: general principles

Least Suprise: Always do the least suprising thing. In other words, make it work intuitively. If a straight line search works, use that, instead of a complex search / hashtable / etc. The next programmer might think you weren't very good, but they will understand the code straight away. Which means you are good.

Last published: Thursday 22nd September 2011

<<Previous     Next>>

carriagereturn.org home