Imagine you fucked up at your job; brought down the production server or something. And at the next team meeting, your boss brings out a dog bowl with moist dog food in it and tells you to get on the ground and eat it. And if you don't, you'll get demoted.
That's fucked up, right? No different than forcing a kid to eat a dog biscuit because he chatted too much.
Modern disciplinary theory promotes the idea of "natural consequences". If someone were chatty in my classroom, the natural consequence is to separate them from whomever they're chatting. It's both a punishment (can't sit near friends any longer) and solves the problem (not near those kid wants to chat to). Alternatively, if the kid just speaks out a lot and ignores material, start asking them to recap for the class what we just went over. Again, both a punishment (has to do extra work) and solves the problem (forces better attention, redirects attention-seeking behavior). No humiliation needed beyond simply getting called out by the teacher for the disruption – again, a natural consequence.
Public humiliation is especially insidious in multicultural classrooms. While western students may take public humiliation in stride (as me and my co-conspirators did), students from some backgrounds (e.g. east Asian) take public humiliation, especially from an authority figure, extremely harshly, making such disciplinary actions a very poor idea.
We live in a civilized society with lots of behavioral research. No need to resort to arbitrary public humiliation to enforce discipline.