In short, the students taking the AP computer science class are more male, more white, more affluent, and more urban than the country as a whole. This part of the problem has multiple causes. But the tech sector needs to accept its share of responsibility. It has not always been an easy place for women or minorities to build a career.