Teaching physicists how to program