Recidivism has proved that rehabilitation is a hoax.
Retribution is not only effective deterrant via punishment, it keeps them off the streets for awhile, during which they can't target innocent victims.
The only more effective, permanent solution is the death penalty.
If the justice system fails, the people will impose street justice. History has proved this.