To an extent, you are correct. But my experience has been slightly different.
Having a major-ish depression once or twice a year is customary for me now. This happens no matter how good or bad things in life are going on: whether I'm working on something I really like near an infinity pool in Kuala Lumpur, or whether I'm out of client work and desperate.
Alcohol helps me get through that ("you should go to a shrink", anyone?), and then when this periodic depression is done, I'm back to enjoying the things I do.
With some occasional alcohol when I feel like it, or when dealing with legacy PHP code (no kidding).
One thing I also noticed is having a great, caring, friendly partner reduced my alcohol consumption—significantly.