Optimal foraging theory aims to elucidate strategies that maximize resource intake. Although traditionally used to understand animal foraging behavior, recent evolutionary experiments with viruses offer a new twist on an old idea.