A while back, I stumbled across this blog post by Eric Lippert of Microsoft. It has some nice tips for anybody doing any sort of serious programming. However, the first comment, by one Mike Dunn, caught my eye:
Always write code as if the maintenance programmer were an axe murderer who knows where you live.
If only every programmer had that attitude...