Microbial adaptation to a changeable environment: Cell-cell interactions mediate physiological and genetic differentiation