Attracting females is key to the future of computer science, Rodger says. In 2008, only 11.8 percent of U.S. bachelor's degrees in computer science went to women, according to the Computing Research Association. And Duke's showing is hardly better, said Rodger, who is trying to turn that around by making programming fun to learn.