I agree with the conclusion of the last paragraph. My problem with STEM majors is that the softer virtues, like humanity, mercy and a certain large-heartedness which are needed to govern a large group are missing. ("Govern a large country like you fry small fish" - Lao Tzu, meaning govern with minimal interference)
I have found this disturbing view among many of the bay-area programmer friends I have - that life is a cut-and-dry game in which the losers in life deserve nothing - which I do not agree with. The animosity that the programmers face as a community in SFO may be down precisely to their view of others.
I don't think you should stereotype to all STEM majors (internationally) based on a small collection of your programmer friends.
Plenty of STEM majors appreciate soft virtues and are large-hearted. In fact, I'd argue that lawyers are far more likely to see the evil in everyone (it's practically their job_ and to be oppose to mercy.
Law and politics warp your view of the world because everything becomes a subjective, debatable matter of opinion.
Politics is especially dangerous because the definition of a successful argument is one that increases your power. Facts are tangential at best, distracting and unwelcome at worst.
The corresponding problem for people with STEM backgrounds is a lack of understanding that this is how politics works. If your approach is based on facts, model-building, and reality testing, it's incredibly easy to be blindsided by a career politician - or career manager - who only cares about public opinion, and is perfectly prepared to lie professionally if they make more money and/or gain more power from it.