To capitalize on the growing cachet of the tech industry, colleges nationwide, including Stanford, the University of Washington and the University of Southern California, have recently revamped their computer science curriculums to attract iPhone and Facebook-obsessed students, and to banish the perception of the computer scientist as a geek typing code in a basement.