Is "eye for an eye" the best rationale for punishment?

There are several common rationales for punishment when it comes to sentencing those convicted of crimes.

First, there is the idea of rehabilitation. People should be sentenced in a way to rehabilitate themselves (hence the California penitentiary system's name: California Department of Corrections and Rehabilitation).  The emphasis is on things like drug treatment programs, education, and classes.