Sometimes it's easier to code all day long than how easy it feels to improve your life. Especially if one excels at work and lacks a social network in life.
> End your day without any self worth reward and struggle the next day due to the alcohol or paranoia of reliving the previous day.
There are definitely ways to mitigate this way of thinking, one being understanding the "spot light effect" the "phenomenon where people tend to overestimate how much others notice aspects of one's appearance or behavior."
Also to do more structured based social activities.
If it’s so painful to hang out then you could do something else. Go for a run/bike/hike, woodworking, gardening, gym, learn a new skill, etc. heck so drugs and play video games. It’s good to have something other than work in your life or one day you’ll have a crisis when things go poorly with work