Diversity in, and adaptation to, adverse environments on-farm