it is the certainty of being punished and not the horrifying spectacle of public punishment that must discourage crime