Not to diagnose your friend, but more as a general note: that kind of perspective sounds (from my admittedly unqualified perspective) much more typical of people on the autism spectrum or certain other non-neurotypicals than it does of "smart people" in general. It might be worth noting that there's some (mostly-anecdotal) indications that tech, particularly programming itself, may have higher incidence of people on the spectrum than other fields.