Apparently you should get both different types of locks - a chain, and the u-shaped rigid lock. The wisdom behind it is that most bike thieves will have the aparatus for breaking just one, either bolt cutters for the chain or a a hammer for breaking u-shaped lock.
I guess if you have both you double your chances of keeping your bike - but if they really want to take it they'll find a way unfortunately