Tackling coding problems

It is often said that when tackling coding problems, programmers tend to try out all sorts of combinations of statements before getting it right. This is true. However, what gives a program its edge is going the extra distance and making the program nice and readable for the next person who comes along to maintain it or change it. This quote perhaps sums it up nicely:

Always code as if the person who ends up maintaining your code is a violent psychopath who knows where you live.