There are plenty of webpages out there with tips and hints about locking a bike.  They all tell basically the same story, use a quality lock, lock to something secure like a police station or Linus’ blanket or even an animatronic clown.

And never ever never leave the key in the lock while you are getting coffee.  Just don’t do it!