You see this pattern of behaviour in all disciplines, but in tech it seems that social skills are less important than elsewhere so those types are attracted to the field, and we've also cultivated a culture that glorifies people who are assholes but are also visionaries - Jobs/Musk/Zuckerberg etc.
/happily married for 13 years now with two kids so i guess my personality isn't that toxic heh
Unless your mob or pair programming all day most of the week, the actual work involved is rather isolating.
I don't have programmer friends, my friend group has consisted of social people owing to a series of incidental factors that began late in high school. I was consistently the person first to be exhausted going into late night where they seemed to have a replenishing reservoir of energy.
https://journals.sagepub.com/doi/full/10.1177/13623613198835...