If you are good at coding, then you code for a day and create something you are proud of. +1 to self worth.
You send it for code review or deploy and you get positive feedback. +2 to self worth.
A junior dev in house or browsing your open source project loves your code and asks for advice. +3 to self worth.
Compared to.
Go out to a social event for lunch, struggle through the social interactions.
Maybe drink a bit too much because you are stressed.
Get caught in a difficult spot when you tell someone they are wrong (which they were, but you were being rude).
Hang around for the whole afternoon / evening because you told yourself you have to make this work and get a 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.
This is the life of a few socially awkward (and usually high iq) people I have had the pleasure of meeting. And myself.
I think it is healthy to take the second option, get a life, learn to make relationships.
But it’s the hard option. Sitting at the IDE and being good at what you are good at, is much easier.