Is forcing a criminal to write an apology letter a form of public humiliation or is it fair punishment?

In your opinion, should people accused of terrible crimes be publicly shamed? Explain. What methods would you recommend?