At a barbershop in Des Moines, Iowa, Kamala Harris told an undergraduate college student studying political science that she should learn to code.