As someone who's generally anti-public witchhunt, this was a good piece on when it's appropriate and when it can go bad.
Jon Ronson has a whole book on the subject
https://en.m.wikipedia.org/wiki/So_You've_Been_Publicly_Shamed