Bad offshore code is a rational output of fixed-bid contracts, pyramid staffing and 24-hour question latency, not of nationality. What the attrition and distributed-team research actually shows, and the seven things an engineering manager can change.