I think where you leave your bike is as important or maybe more important than the manner in which it's locked.
It seems this is a crime of opportunity, so if you leave temptation in the path of someone looking for an opportunity, it's going to be gone.
Use a little common sense, remove a temptation, you'll probably keep your bike for a long time.