The drink trick is perfect, but beware you will be going to the bathroom often. Also be aware that you may develop a habit of sipping on your cup very often and that can lead to bad habits while drinking alcohol.
I've used the glass of water trick myself, and it is very helpful. It's especially helpful because when you get stuck while solving a problem, you have a great reason to get up and walk around to think about said problem.
Just another data point: This hasn't affected my drinking habits in other areas.
Just another data point: This hasn't affected my drinking habits in other areas.