I did not know that: Hold the Shift key while dragging the Dock’s divider line to move it to another side of the screen.

Update:Here’s a whole page of Dock shortcuts, including another one I didn’t know about: if you hold down Option while dragging the separator, the Dock resizes in fixed icon-size increments: 128 → 64 → 32 → 16.