I have found that using two different types of lock makes the process harder for the average opportunist.
A heavy duty lock to secure bike to object (lampost, whatever), then use a cable lock to secure the front wheel to frame, as even if the thief can cut the other lock they can’t then just ride off.
Also, thieves are know to wait until they see someone locking up the bike, then they have a face to look out for and a more predictable timeframe in which to operate.
Also, i always shift the bike into the wrong gear so when the thief tries to ride off, the chain comes off and he is put off by not being able to make a quick getaway.