  In this expository paper we show how one can, in a uniform way, calculate the
weight distributions of some well-known binary cyclic codes. The codes are
related to certain families of curves, and the weight distributions are related
to the distribution of the number of rational points on the curves.
