Actually the sociopaths tend to go into management, not programming. From my own experience I would say that programmers are very rarely in the psychopathy spectrum, more typically going toward the autism spectrum. I was curious as to what value psychopaths had in an evolutionary sense (both individually and in society), and I learned that they can be valuable. In an experiment with spiders, an equivalent to psychopathy was indicated as a group survival trait, as without it nobody defended the group against external enemies. In society, some level of psychopathy is to my mind almost essential to being a successful politician - imagine a President who could not lie ("No, we have no intentions of invading next week."), and truly did "feel our pain" when he ordered thousands of soldiers to kill, and die. I wouldn't want a surgeon to "feel my pain" either.
Incidents of sociopathy/psychopathy increase from about 1% to 4% as you go up in the corporate (or government) hierarchy. (I would say the incidence among executives of big financial institutions is probably more like 20%, but that's just me.) It's also high among surgeons but not other doctors. Sociopaths are often natural leaders. In fact in that sense it is can be a positive trait. This book was recommended to me, and I coincidentally saw an article also recommending it - written by a neuroscientist who discovered in the course of his research that he had psychopathic traits: The Neuroscientist Who Discovered He Was a Psychopath.
See also The Pros to Being a Psychopath. Quote:
Psychopaths are assertive. Psychopaths don’t procrastinate. Psychopaths tend to focus on the positive. Psychopaths don’t take things personally; they don’t beat themselves up if things go wrong, even if they’re to blame. And they’re pretty cool under pressure. Those kinds of characteristics aren’t just important in the business arena, but also in everyday life.
The key here is keeping it in context. Let’s think of psychopathic traits—ruthlessness, toughness, charm, focus—as the dials on a [recording] studio deck. If you were to turn all of those dials up to max, then you’re going to overload the circuit. You’re going to wind up getting 30 years inside or the electric chair or something like that. But if you have some of them up high and some of them down low, depending on the context, in certain endeavors, certain professions, you are going to be predisposed to great success. The key is to be able to turn them back down again.
So I applied my newfound knowledge to the US Constitution. I realized that, having dealt with royal and other psychopaths and seen both their use and their risk, the founding fathers tried to construct a system that essentially pitted power-seekers (which to me is mostly psychopaths) against each other, allowing the system to make use of their talents competitively while never allowing any single one or group to take complete control - and always have a way for the system to re-stabilize away from any monopoly of power over time. This is an interesting new perspective.