My elementary school teachers used to hit us and from my experience I think it's bad. It ruins the relationship between teachers and students. It never fixed anything with the students either and they'd do the same thing they got hit for later, usually out of spite and hatred. Fortunately nowadays that kind of teaching is considered outdated and teachers don't do it in most places.