Code:
Frankly, I think such punishment is much better deterrent for future acts and much more cost effective (in every way). Of course, there remains that pesky issue of "innocent until proven guilty" and public taking law into their own hands.
In the case you posted there also remains the questions of who is sentencing an alleged criminal and who's carrying out the sentence.
Then there is the question of what is a crime. Six women have been buried alive in Pakistan recently because they refused to marry their chosen partners. In my book, not marrying a guy i don't want to isn't a crime.
And then there is the final question of how far it should go: Should it stay with naming and shaming, tarring and feathering or do we go all the way and "hang 'em higher"?
All in all, i think the way justice is carried out nowadays in most western countries has proven to be the a good way. Even if it's very expensive and not very effective.
However, sometimes i think the law could be a bit harsher where i live.