The fruitfly brain learns about the olfactory world by reading the activity of about 50 distinct channels of incoming information. The receptor neurons that compose each channel have their own distinctive odour response profile governed by a specific receptor molecule. These receptor neurons form highly specific connections in the first olfactory relay of the fly brain, each synapsing with specific second order partner neurons. We use this system to discuss the logic of wiring specificity in the brain and to review the cellular and molecular mechanisms that allow such precise wiring to develop.