I'll keep that in mind.
Normally I just stay over at the person's house, otherwise I get a taxi home. I think if I do drink alot at a friend's house, I'll keep a glass of water nearby.
Or eating before bed does help, usually after a night out and I come home I have a glass of milk with a couple of slices of bread to line the stomach and to sober myself up. It works, too!