The main function of brains is to generate adaptive behavior. Far from being the stereotypical, robot-like insect, the fruit fly Drosophila exhibits astounding flexibility and chooses different courses of actions even under identical external circumstances. Due to the power of genetics, we now are beginning to understand the neuronal mechanisms underlying this behavioral flexibility. Interestingly, the evidence from studies of disparate behaviors converges on common organizational principles common to many if not all behaviors, such as modified sensory processing, involvement of biogenic amines in network remodeling, ongoing activity, and modulation by feedback. Seemingly foreseeing these recent insights, the first research fields in Drosophila behavioral neurogenetics reflected this constant negotiation between internal and external demands on the animal as the common mechanism underlying adaptive behavioral choice in Drosophila.