Avoiding it as much as possible is probably best, but I suspect the opportunity costs of completely forgoing it and not enjoying various happy hours that various entities put on for whatever reason is not worth it in the long-term. One has to indulge in vices every now and then.