Well I know from my own life that when younger and had a wild though in my head, the thought of my Dad correcting me usually sent the thought out of my head very quickly...
Raised two sons who are both excelling and if they needed it, they were corrected by me, their Dad. At the time, my wife and I disagreed on how the boys should be corrected or disciplined, and I am usually a person that will compromise. But with my sons I would not compromise. I told her that if she disagreed with me that is fine, but do not even try to stop me from raising them into proper, respectable men and people.
She is very happy I did that, so are my sons, and I now have peace of mind because they take on their own loads and lives and stand as honorable men.
These offenders that we chastise are people. Many come from backgrounds and environments that would make criminals out of the best of us. So in a sense, you are helping them.
Is it barbaric, yup. But a year after, they have a small scar on their butts, but more importantly have a corrected thinking put in their head and a real shot at a life. As opposed to survival as an outcast criminal and parasite on society.
"evil flourishes when good people fail to act"