I always tie a rope between the bow and stern cleats with about 10 feet of slack (which I pull into the boat). As long as you can get the bow against the dock you can reel the back end in (or the other way around if things go really bad). I also keep a docking loop on board.
http://www.theboatloop.com/boat-accessories/