In this expository paper we show how one can, in a uniform way, calcul
ate the weight distributions of some well-known binary cyclic codes. T
he codes are related to certain families of curves, and the weight dis
tributions are related to the distribution of the number of rational p
oints on the curves.