Besides that, the rule is to always make your bike the least attractive to steal. Use two locks eg. a ring lock through the rear wheel and a chain lock through the front wheel, frame, and attached to something stationary (so they can't through the bike in a van and break the locks later). In general it's also good to put it in places where someone would notice if anyone tries to steal the bike, but not so busy that no one would notice and feels responsibility. Bonus points (remember the 'least attractive' rule), put it in some place where there are bikes that are much easier to steal (eg. not attached to a fixed object).
But expensive and heavy locks suck and the ever present thought in your head planning a good parking spot etc. kills the joy of it.
It's also a cultural/facilities thing. Eg. in The Netherlands many cities have bike parking with supervision and nobody minds if you attach your bike to eg. a lamp post. And most cities have plenty of lamp posts, so no real planning necessary :).