Happily, it never happened to me in childhood.
As a parent, I don't think it works and we have never considered using shaming. It will not inspire greater achievement that lasts - that comes from within - and to discourage negative behavior, empathy and listening work better (with the possible exception of really bad anti-social behaviors).